What is the meaning of 000 mode bits incase root user sets 000 for his own file?

I logged in as root user and removed all permissions from a file, still i can see the content of file.

#chmod 000 test
#ls -l
---------- 1 root root   216 Dec 10 13:13 test
#cat test
......
....
File content displayed
....
link|improve this question

Note that it wouldn't make much sense to take away all permissions from a file even for root - such a "zombie" file couldn't be viewed, changed, deleted anymore. – schnaader Dec 20 '11 at 11:33
feedback

1 Answer

up vote 5 down vote accepted

Basically, rootness trumps permissions.

Permissions 000 means only root can read or write the file.

I'm not aware of any extra special use for the combination of root ownership and 000 permissions.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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