[CentOS] directory permissions

Tue Jan 12 22:25:52 UTC 2010
Paul Heinlein <heinlein at madboa.com>

On Tue, 12 Jan 2010, Carlos Santana wrote:

> Thanks nate and Paul..
>
> Do I need to use -R recursive option for any of the commands you 
> mentioned?

I'd be leery of doing that unless the only items below the top 
directory are other directories (i.e., no regular files).

If you have subdirectories you want to alter, but you also have 
regular files sprinkled through the tree, it'd be best to run find 
instead, e.g.,

   find /your/directory -type d -exec chmod 3775 {} \;

-- 
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/