find: Fixing Permissions

1 
1 9.5 Fixing Permissions
1 ======================
1 
1 Suppose you want to make sure that everyone can write to the directories
1 in a certain directory tree.  Here is a way to find directories lacking
1 either user or group write permission (or both), and fix their
1 permissions:
1 
1      find . -type d -not -perm -ug=w | xargs chmod ug+w
1 
1 You could also reverse the operations, if you want to make sure that
1 directories do _not_ have world write permission.
1