From 8979fa02c5c4aae7373344d4f5c41eb0b8564932 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 29 Mar 2009 21:36:45 +0200 Subject: [PATCH] addsite: Give webmasters write access to the data dir. --- 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 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" -- 2.30.2