From: Matthijs Kooijman Date: Sun, 29 Mar 2009 19:36:45 +0000 (+0200) Subject: addsite: Give webmasters write access to the data dir. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8979fa02c5c4aae7373344d4f5c41eb0b8564932;hp=44024da1dfb8e72d59dce0e25313898848fba0a7;p=matthijs%2Fservers%2Fdrsnuggles.git addsite: Give webmasters write access to the data dir. --- diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index 815ecfc..73eb5d3 100755 --- a/usr/local/bin/addsite +++ b/usr/local/bin/addsite @@ -93,8 +93,8 @@ sudo chown -R 0:$GROUP "$DIR" # By default, let the owner have write access, the group have read access sudo setfacl -R --set d:u::rwX,d:g::rX,d:o::-,u::rwX,g::rX,o::- "$DIR" -# Give the group write access to htdocs, applications and conf -sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/applications" "$DIR/conf" +# Give the group write access to htdocs, applications, conf and data +sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/applications" "$DIR/conf" "$DIR/data" # Give lighttpd read access to the dir itself sudo setfacl -m u:$HTTPD_USER:rx "$DIR"