From fa0dad57ac8b38969fe2821fa0857fdc13f76e88 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 17 Dec 2008 19:58:27 +0100 Subject: [PATCH] addsite: Give www-data read access to conf/ dirs. --- usr/local/bin/addsite | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.30.2