Xymon probably isn't running as root and hence the user has no permission to read that file.<br><br>Use group permission for the file and add the Xymon user to that group.<br><br clear="all">Josh Luthman<br>Office: 937-552-2340<br>

Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br>
<br><br><div class="gmail_quote">On Mon, Mar 28, 2011 at 10:51 PM, Adam Goryachev <span dir="ltr"><<a href="mailto:adam@websitemanagers.com.au">adam@websitemanagers.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi all,<br>
<br>
I've got a bit of a problem across a number of machines which I'm having<br>
some trouble working out.<br>
<br>
Basically, the problem is my hobbit user can't display my log files:<br>
hobbit@host:/var/log$ cat messages<br>
cat: messages: Permission denied<br>
<br>
However, the user has these permissions/groups<br>
hobbit@host:/var/log$ id<br>
uid=110(hobbit) gid=110(hobbit) groups=0(root),4(adm),110(hobbit)<br>
<br>
The directories leading to the file have these permissions:<br>
hobbit@host:/var/log$ ls -ld /<br>
drwxr-xr-x 24 root root 4096 Nov 19  2009 /<br>
hobbit@host:/var/log$ ls -ld /var<br>
drwxr-xr-x 15 root root 4096 Nov 19  2009 /var<br>
hobbit@host:/var/log$ ls -ld /var/log<br>
drwxr-xr-x 14 root root 4096 Mar 29 08:46 /var/log<br>
<br>
The file has read permissions to the adm group of which we are a member<br>
(above)<br>
hobbit@host:/var/log$ ls -ld /var/log/messages<br>
-rw-r----- 1 root adm 21353 Mar 29 13:27 /var/log/messages<br>
<br>
Finally, here is all the info I can see on the file:<br>
hobbit@host:/var/log$ stat /var/log/messages<br>
  File: `/var/log/messages'<br>
  Size: 21353           Blocks: 48         IO Block: 1048576 regular file<br>
Device: eh/14d  Inode: 4202796     Links: 1<br>
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    4/     adm)<br>
Access: 2011-03-28 20:21:00.000000000 +1100<br>
Modify: 2011-03-29 13:27:00.000000000 +1100<br>
Change: 2011-03-29 13:27:00.000000000 +1100<br>
<br>
I'm running a fairly standard Debian lenny<br>
<br>
The root user has no problem reading/writing the file/etc....<br>
<br>
Any pointers would be appreciated....<br>
<br>
Regards,<br>
Adam<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div><br>