From 621f44daca10072f779dfc44e0357293d90d3bd0 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 19 Sep 2014 19:28:20 +0300 Subject: [PATCH] chmod: remove useless variables & setfacl & wwwuser setfacl was used to give HTTPd write permission, but setfacl cannot do that, because it can only give permissions which group has and group has only permissions to read and execute, not write. Someone should check if things in this script are even sane. --- chmod | 12 ------------ wwwuser | 1 - 2 files changed, 13 deletions(-) delete mode 100644 wwwuser diff --git a/chmod b/chmod index aefd01cb..ce725d18 100755 --- a/chmod +++ b/chmod @@ -6,12 +6,6 @@ ## https://raw.github.com/Mkaysi/shell-things/master/chmod set -x -GROUP=$(id -gn) - -wwwdata=$(head -n1 wwwuser) - -setfacl=$(locate setfacl|grep bin|head -n1) - chmod g-rwx,o-rwx $HOME -R touch ~/.oidentd.conf @@ -27,16 +21,10 @@ chmod -R 755 ~/public_html/ touch ~/.face touch ~/.forward touch ~/.netrc -echo "" chmod a+r-wx,u+rw ~/.face chmod a+r-wx,u+rw ~/.forward chmod 600 ~/.netrc -if [[ -f $setfacl ]]; then -setfacl -R -m u:$wwwdata:rwx ~/public_html -setfacl -R -m d:u:$wwwdata:rwx ~/public_html -fi - if [ -f chmod.2 ]; then ./chmod.2 fi diff --git a/wwwuser b/wwwuser deleted file mode 100644 index 5bbad189..00000000 --- a/wwwuser +++ /dev/null @@ -1 +0,0 @@ -www-data