Project

General

Profile

« Previous | Next » 

Revision 285

fix_permissions: Also change user to bien

View differences:

bin/fix_permissions
4 4
selfDir="$(dirname -- "$0")" # dir of symlink $0, not this script itself
5 5
cd "$selfDir"
6 6

  
7
opts='--quiet --changes'
8
chgrp --recursive --no-dereference $opts bien .
7
opts="--quiet --changes"
8
chOpts="--recursive --no-dereference $opts"
9
chown $chOpts bien .
10
chgrp $chOpts bien .
9 11
find . -type d -exec chmod $opts g+s "{}" \; # only dirs should be setgid
10 12
for perm in r w x; do # extend user perms to group
11 13
    find . -not -type l -perm -u=$perm -exec chmod $opts g+$perm "{}" \;

Also available in: Unified diff