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

Re: Permission change - recursive



Hello Curtis!

On Sat, Mar 13, 2004 at 09:46:06AM -0800, Curtis Vaughan wrote:
> I just noticed that for an entire directory of files and folders, the 
> permissions are not really right.
> 
> Or maybe it doesn't matter.  I went ahead and changed all permission 
> recursively, but feel that permissions should be as follows: for all 
> files 660, whereas for all directories 770.  Has anyone written a 
> script that will drill through a directory and change all the 
> permissions in such a manner?

AFAIK a simple
find <directory> -type f -print0 | xargs chmod -x
chmod -R ug=rwX,o= <directory>
should suffice. Suggestions, anyone?

Cheers,
Flo

Attachment: signature.asc
Description: Digital signature


Reply to: