mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
fix previous commit
This commit is contained in:
parent
4790af40d3
commit
05b44c7cc5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*~
|
*~
|
||||||
*.swp
|
*.swp
|
||||||
*.tmp
|
*.tmp
|
||||||
|
wwwuser
|
||||||
|
12
chmod
12
chmod
@ -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 ."
|
||||||
|
Loading…
Reference in New Issue
Block a user