diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-09-04 23:35:52 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-09-04 23:35:52 +0000 |
commit | 73b959903699b19bef805b96c386ed7fe433a33e (patch) | |
tree | a945de312bc312d8e157718a972041df04b42b12 /user-init | |
parent | d904590d8673bd33ce2b1c866db9d34f56de34e7 (diff) |
Add support in user-init for webphpsites and webphpdata, and tighten access rights on all web* dirs.
Diffstat (limited to 'user-init')
-rwxr-xr-x | user-init | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -212,7 +212,7 @@ for user in $USERS; do # Web shares permissions for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/websites"`; do chown root: $dir - chmod u+rw,go+r,a+X $dir + chmod a=r,u+w,a+X $dir done for dir in `find $HOME -mindepth 2 -maxdepth 2 -type d | egrep "^$HOME/websites/"`; do chown -R $user: $dir @@ -226,7 +226,7 @@ for user in $USERS; do done for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/webscripts"`; do chown root: $dir - chmod u+rw,go+r,a+X $dir + chmod a=r,u+w,a+X $dir done for dir in `find $HOME -mindepth 2 -maxdepth 2 -type d | egrep "^$HOME/webscripts/"`; do chown -R $user: $dir @@ -236,11 +236,27 @@ for user in $USERS; do done for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/webdata"`; do chown root: $dir - chmod u+rw,go+r,a+X $dir + chmod a=r,u+w,a+X $dir done for dir in `find $HOME -mindepth 2 -maxdepth 2 -type d | egrep "^$HOME/webdata/"`; do chown -R $user: $dir - chmod -R u=rw,go=r,a+X $dir + chmod -R u=rw,go=,u+X $dir + 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 + 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 + done + for dir in `find $HOME -mindepth 1 -maxdepth 1 -type d | egrep "^$HOME/webphpdata"`; do + chown root: $dir + chmod a=r,u+w,a+X $dir + done + for dir in `find $HOME -mindepth 2 -maxdepth 2 -type d | egrep "^$HOME/webphpdata/"`; do + chown -R $user:www-data $dir + chmod -R ug=rw,o=,ug+X $dir done # Dummy user restrictions |