Revision 242
Added by Aaron Marcuse-Kubitza about 13 years ago
fix_permissions | ||
---|---|---|
7 | 7 |
opts='--quiet --changes' |
8 | 8 |
chgrp --recursive --no-dereference $opts bien . |
9 | 9 |
find . -type d -exec chmod $opts g+s "{}" \; # only dirs should be setgid |
10 |
find . -perm /u=w,g=w,o=w -exec chmod $opts g+w "{}" \; # extend any write perms |
|
10 |
for perm in r w x; do # extend user perms to group |
|
11 |
find . -perm /u=$perm -exec chmod $opts g+$perm "{}" \; |
|
12 |
done |
Also available in: Unified diff
fix_permissions: Extend all user permissions to group