From 05b44c7cc5f904daeee1e3769efc45770e792af0 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Thu, 7 Feb 2013 18:17:02 +0200 Subject: [PATCH] fix previous commit --- .gitignore | 1 + chmod | 12 +----------- wwwuser | 1 + 3 files changed, 3 insertions(+), 11 deletions(-) create mode 100644 wwwuser diff --git a/.gitignore b/.gitignore index 1ff70402..b7e354a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ *.swp *.tmp +wwwuser diff --git a/chmod b/chmod index 2ad71634..eb5f3d7b 100755 --- a/chmod +++ b/chmod @@ -7,17 +7,7 @@ GROUP=`id -gn` -if [ -f /etc/httpd/conf/httpd.conf ]; then - wwwdata=`grep ^User /etc/httpd/conf/httpd.conf|cut -f 2 --delimiter=" "` - fi - -if [ -f /etc/apache2/apache2.conf ]; then - wwwdata=`grep ^User /etc/apache2/apache2.conf|cut -f 2 --delimiter=" "` - fi - -if [ -f /etc/lighttpd/lighttpd.conf ]; then - wwwdata=`grep server.user /etc/lighttpd/lighttpd.conf|cut -f 2 -d=` - fi +wwwdata=`head -n1 wwwuser` echo "Denying Reading, Writing and eXecuting from other users in" echo "your home directory $HOME ." diff --git a/wwwuser b/wwwuser new file mode 100644 index 00000000..5bbad189 --- /dev/null +++ b/wwwuser @@ -0,0 +1 @@ +www-data