From daae569442c38e3d023223b30434ee09d438ae4e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 25 Apr 2024 17:37:26 +0300 Subject: [PATCH] chmod: fix SC quoting, add verbosity for less dangerous things --- chmod | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/chmod b/chmod index a3406ba3..30ebf28b 100755 --- a/chmod +++ b/chmod @@ -4,28 +4,29 @@ # access. set -x -chmod g-rwx,o-rwx $HOME -R +# You don't want to make this verbose. +chmod g-rwx,o-rwx "$HOME" -R touch ~/.oidentd.conf -chmod u+rw,g-wx+r,o-wx+r ~/.oidentd.conf +chmod -v u+rw,g-wx+r,o-wx+r ~/.oidentd.conf touch ~/.ICEauthority -chmod o-rw+x,g-rw+x ~ +chmod -v o-rw+x,g-rw+x ~ mkdir -p ~/public_html/ -chmod -R 755 ~/public_html/ +chmod -v -R 755 ~/public_html/ touch ~/.face touch ~/.forward touch ~/.netrc -chmod a+r-wx,u+rw ~/.face -chmod a+r-wx,u+rw ~/.forward -chmod 600 ~/.netrc +chmod -v a+r-wx,u+rw ~/.face +chmod -v a+r-wx,u+rw ~/.forward +chmod -v 600 ~/.netrc mkdir -p ~/.ssh -chmod 700 ~/.ssh +chmod -v 700 ~/.ssh touch ~/.ssh/authorized_keys -chmod 600 ~/.ssh/authorized_keys +chmod -v 600 ~/.ssh/authorized_keys set +x