On Fri, Dec 07, 2001 at 03:36:26PM -0800, Gordon Messmer <[EMAIL PROTECTED]> wrote:
| On Fri, 7 Dec 2001, Alexander Shaw wrote:
| 
| > Is it possible to change the ownership or permissions of the contents
| > of entire directory including the sub directories? If so, how?
| 
| chown -R
| chmod -R
| 
| Be careful with the latter.  You usually don't want directory and file 
| permissions to be the same thing.  Something like this is better:
| 
| find /path -type f -print | xargs chmod 0640
| find /path -type d -print | xargs chmod 0750

Yep. I have a script called setperms for just this reason:

        http://www.zip.com.au/~cs/scripts/setperms

and run it mostly with this script:

        http://www.zip.com.au/~cs/scripts/755

(also linked to 700 and 750 and 775, the common configs).

And the other script I use heavily at work for shared areas is this one:

        http://www.zip.com.au/~cs/scripts/groupshare

Very very handy.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Mark Crowder <[EMAIL PROTECTED]>: Possessor of a mind not merely twisted,
                                    but actually sprained!



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to