Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
....
share|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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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