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

Re: Umask 002 policy



Once upon a time Vineet Kumar said...
> * Cameron Hutchison (camh+dl@xdna.net) [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.



Reply to: