fix previous commit

This commit is contained in:
Mika Suomalainen 2013-02-07 18:17:02 +02:00
parent 4790af40d3
commit 05b44c7cc5
3 changed files with 3 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*~ *~
*.swp *.swp
*.tmp *.tmp
wwwuser

12
chmod
View File

@ -7,17 +7,7 @@
GROUP=`id -gn` GROUP=`id -gn`
if [ -f /etc/httpd/conf/httpd.conf ]; then wwwdata=`head -n1 wwwuser`
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
echo "Denying Reading, Writing and eXecuting from other users in" echo "Denying Reading, Writing and eXecuting from other users in"
echo "your home directory $HOME ." echo "your home directory $HOME ."

1
wwwuser Normal file
View File

@ -0,0 +1 @@
www-data