Project

General

Profile

1
#!/bin/sh
2
# Sets correct permissions on shared bien files
3

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

    
7
opts='--quiet --changes'
8
chgrp --recursive --no-dereference $opts bien .
9
find . -type d -exec chmod $opts g+s "{}" \; # only dirs should be setgid
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
(4-4/17)