Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
Root of course can read that file, but even root cannot write to a 000 file unless permissions are changed. – Sreeraj Feb 2 '15 at 4:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .