summaryrefslogtreecommitdiff
path: root/user-init
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-11-08 14:10:19 +0000
committerJonas Smedegaard <dr@jones.dk>2002-11-08 14:10:19 +0000
commit3508e8ccd26c310a8c4671ac5a5a5fc0bada7686 (patch)
treee842d8504b4e1d6e95fa9569d5a290ab1429bdc6 /user-init
parent9dbd49b1bb3181c90bb23769bc44c5498f97d505 (diff)
user-init: No need for others than owner and www-data to have access to webphpsites.
Diffstat (limited to 'user-init')
-rwxr-xr-xuser-init5
1 files changed, 3 insertions, 2 deletions
diff --git a/user-init b/user-init
index 59cac74..5c67740 100755
--- a/user-init
+++ b/user-init
@@ -240,11 +240,12 @@ for user in $USERS; do
done
for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/webphpsites"`; do
chown root: $dir
- chmod a=r,u+w,a+X $dir
+ chmod u=rw,go=r,a+X $dir
done
for dir in `find $HOME -mindepth 2 -maxdepth 2 -type d | egrep "^$HOME/webphpsites/"`; do
chown -R $user:www-data $dir
- chmod -R ug=rw,o=r,a+X $dir
+# chmod -R ug=rw,o=r,a+X $dir
+ chmod -R ug=rw,o=,ug+X $dir
done
for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/webphpdata"`; do
chown root: $dir