From e94774b84927f58f1ba8b437bf457581e88c83be Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Sun, 13 Oct 2019 16:49:22 +0200 Subject: [PATCH] added fixperms 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..4bf7a24 --- /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"