Once upon a time Vineet Kumar said...
> * Cameron Hutchison ([EMAIL PROTECTED]) [041222 14:56]:
> > # find $dir -type f -print0 | xargs -0 chmod g=u,o=-rwx
> 
> To reduce this yet further, you could do it as 
> 
> chmod -R g=u $dir
> 
> This handles both directories and files in one pass, setting group
> perms equal to user perms, and nothing else (no mucking with user
> perms).

It also does not set the setgid bit on directories, which is necessary
to maintain the correct group in the hierarchy in future.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to