Xymon Mailing List Archive search

Hobbit Permission Problem

list Adam Goryachev
Tue, 29 Mar 2011 17:17:57 +1100
Message-Id: <user-f540fa4a7009@xymon.invalid>

On 29/03/2011 4:51 PM, Phil Crooker wrote:
So, to be clear, you su as the user hobbit and change to that
directory and cannot read the file?
Sorry didn't read the original email..... Just ignore that question.

Is it just *this* user or *this* directory? Have you tried creating
another user in the adm group or create another (unrelated) directory
with the same rights? This is odd.
host:~# mkdir /blah
host:~# cd /blah/
host:/blah# touch test
host:/blah# chgrp adm test
host:/blah# chmod 640 test
host:/blah# ls -l
total 0
-rw-r----- 1 root adm 0 2011-03-29 17:15 test
host:/blah# su - hobbit
hobbit at host:~$ cat /blah/test
cat: /blah/test: Permission denied

Looks like any file in any directory has the same problem....

Thanks,
Adam