On 07/20/10 4:54 PM, Larry Brower wrote:
Ski Dawg wrote:
Hello all,
Today, I ran across a directory in /etc/ on one of our servers whose permissions where set to 600 (drw-------) with root being the owner. The directory is for the firewall package for the server, so it is not something malicious. Checking some other systems, they also have this directory and the permissions on those servers is also 600, so it isn't just a messed up permissions on this one machine.
What is the difference between permissions of 600 and 700 for a directory, that is owned by root (group root)? Is there a reason why some directory should be set to 600 instead of 700?
600 is read and write for the owner whereas 700 is read write and execute. If there is nothing in the folder that needs to be executed than 600 would be correct.
um... on a directory, the X bit means you can LS the contents of the directory. of course, root ignores this anyways and overrides it.