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