[Gllug] Recursively setting file permissions
Tethys
tet at createservices.com
Sun May 2 22:34:39 UTC 2004
I wrote:
> find /top/level/directory -type d -exec chmod 770 {} \;
> find /top/level/directory -type f -exec chmod 660 {} \;
But I neglected to mention that if you have large numbers of files
below that directory, you'll get better performance by using xargs:
find /top/level/directory -type d -print | xargs chmod 770
find /top/level/directory -type f -print | xargs chmod 660
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list