[Xymon] Hobbit Permission Problem

Adam Goryachev adam at websitemanagers.com.au
Tue Mar 29 04:51:30 CEST 2011


Hi all,

I've got a bit of a problem across a number of machines which I'm having
some trouble working out.

Basically, the problem is my hobbit user can't display my log files:
hobbit at host:/var/log$ cat messages
cat: messages: Permission denied

However, the user has these permissions/groups
hobbit at host:/var/log$ id
uid=110(hobbit) gid=110(hobbit) groups=0(root),4(adm),110(hobbit)

The directories leading to the file have these permissions:
hobbit at host:/var/log$ ls -ld /
drwxr-xr-x 24 root root 4096 Nov 19  2009 /
hobbit at host:/var/log$ ls -ld /var
drwxr-xr-x 15 root root 4096 Nov 19  2009 /var
hobbit at host:/var/log$ ls -ld /var/log
drwxr-xr-x 14 root root 4096 Mar 29 08:46 /var/log

The file has read permissions to the adm group of which we are a member
(above)
hobbit at host:/var/log$ ls -ld /var/log/messages
-rw-r----- 1 root adm 21353 Mar 29 13:27 /var/log/messages

Finally, here is all the info I can see on the file:
hobbit at host:/var/log$ stat /var/log/messages
  File: `/var/log/messages'
  Size: 21353           Blocks: 48         IO Block: 1048576 regular file
Device: eh/14d  Inode: 4202796     Links: 1
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    4/     adm)
Access: 2011-03-28 20:21:00.000000000 +1100
Modify: 2011-03-29 13:27:00.000000000 +1100
Change: 2011-03-29 13:27:00.000000000 +1100

I'm running a fairly standard Debian lenny

The root user has no problem reading/writing the file/etc....

Any pointers would be appreciated....

Regards,
Adam



More information about the Xymon mailing list