[CentOS] directory permissions set to 600?

Robert Nichols rnicholsNOSPAM at comcast.net
Wed Jul 21 19:24:27 UTC 2010


On 07/21/2010 10:30 AM, Ski Dawg wrote:
> OK, my question from all of this is what is the difference between
> 0600 and 0700 for a directory that is owned by root? I see the
> difference for a directory owned by a non-privileged user, but if root
> is the owner, then only root can do anything with it, or see anything
> in it, and root will ignore the fact that the execute bit is not set
> for the owner. So what is the benefit of making a root owned directory
> 0600 instead of 0700?

For a directory, no difference aside from a command like 'find' explicitly
testing permission bits.  The mode could just as well be 0000.

For an ordinary file, there would be a difference.  For root to execute
a file, at least one of the three execute permission bits must be set.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.




More information about the CentOS mailing list