From 3508e8ccd26c310a8c4671ac5a5a5fc0bada7686 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 8 Nov 2002 14:10:19 +0000 Subject: user-init: No need for others than owner and www-data to have access to webphpsites. --- user-init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'user-init') 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 -- cgit v1.2.3