The root user of Linux doesn't have permission to read/write a regular file, unless all users have permission to read/write this file, like below:

drwxrwsrwx ....... file_name

However the owner of the file can still read/write this file.

AND:

0) not the problem of execution, just read/write
1) not the problem of device because regular user can read/write it.
2) the result of command id:

uid=0(root) gid=0(root) groups=0(root)

so I don't think it's the problem of group.

So what other problems could be?

link|improve this question
You may get a better response asking your question in unix.stackexchange.com – Johnsyweb Mar 23 '11 at 6:51
feedback

migrated from stackoverflow.com Mar 23 '11 at 11:23

This question came from our site for professional and enthusiast programmers.

2 Answers

Is this filesystem on an NFS export?

link|improve this answer
yes, I guess it maybe the problem of NFS. Thx a lot – owen_water Mar 23 '11 at 7:38
feedback

Is the file on an NFS exported without "no_root_squash"? Are you running SELinux? (id -Z and ls -Z gives more information)

link|improve this answer
yes, I'm using NFS. I can't see the configuration file of NFS now because I don't have permission, but it probably uses root_squash since no_root_squash seems not safe. – owen_water Mar 23 '11 at 7:32
and no, not SELinux id: --context (-Z) works only on an SELinux-enabled kernel – owen_water Mar 23 '11 at 7:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.