From 3791a9f435207665e6d797f576b38c2567c57d73 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 12 Feb 2019 16:22:03 +0100 Subject: [PATCH] added fixeperms script --- fixperms.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 fixperms.sh diff --git a/fixperms.sh b/fixperms.sh new file mode 100755 index 0000000..38890c7 --- /dev/null +++ b/fixperms.sh @@ -0,0 +1,8 @@ +#!/bin/sh +chgrp www-data . +chgrp -R www-data * +sh -c "find . -type f | xargs chmod 664" +sh -c "find ./bin -type f | xargs chmod 775" +sh -c "find . -type d | xargs chmod 775" +sh -c "find . -type d | xargs chmod +s" +sh -c "umask 0002"