Attribution des bons droits
darcs-hash:20041003195911-41617-ce0084e6c79211bc0a81ba33c7115c21e2e04636.gz
This commit is contained in:
parent
e0d4d17162
commit
437b80b76a
1 changed files with 25 additions and 0 deletions
25
gestion/set_droits.sh
Executable file
25
gestion/set_droits.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
BASE=/usr/scripts/gestion
|
||||||
|
|
||||||
|
chown -R respbats:adm $BASE
|
||||||
|
|
||||||
|
set_dr () {
|
||||||
|
if [[ -x $1 ]] ; then
|
||||||
|
chmod 775 $1
|
||||||
|
elif [[ $1 = "$BASE/secrets.py" ]] || [[ $1 = "$BASE/secrets.pyc" ]] ; then
|
||||||
|
chmod 640 $1
|
||||||
|
else
|
||||||
|
chmod 664 $1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in $(ls $BASE)
|
||||||
|
do
|
||||||
|
set_dr $BASE/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
for i in $(ls $BASE/gen_confs)
|
||||||
|
do
|
||||||
|
set_dr $BASE/gen_confs/$i
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue