Re: directory permissions set to 600?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux