From: Matthijs Kooijman Date: Wed, 17 Dec 2008 18:58:27 +0000 (+0100) Subject: addsite: Give www-data read access to conf/ dirs. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=fa0dad57ac8b38969fe2821fa0857fdc13f76e88;p=matthijs%2Fservers%2Fdrsnuggles.git addsite: Give www-data read access to conf/ dirs. --- diff --git a/usr/local/bin/addsite b/usr/local/bin/addsite index d2f515e..c7212ab 100755 --- a/usr/local/bin/addsite +++ b/usr/local/bin/addsite @@ -98,8 +98,8 @@ sudo setfacl -R -m g::rwX "$DIR/htdocs" "$DIR/conf" # Give lighttpd read access to the dir itself sudo setfacl -m u:$HTTPD_USER:rx "$DIR" -# Allow lighttpd to read anything in htdocs -sudo setfacl -R -m d:u:$HTTPD_USER:rX,u:$HTTPD_USER:rX "$DIR/htdocs" +# Allow lighttpd to read anything in htdocs and conf +sudo setfacl -R -m d:u:$HTTPD_USER:rX,u:$HTTPD_USER:rX "$DIR/htdocs" "$DIR/conf" # Allow lighttpd to write new files in logs (but not touch existing or those created by lighttpd) sudo setfacl -m u:$HTTPD_USER:rwX "$DIR/logs"