From a8828f642fe6f821e5bc42a6410f9d3ea7ec9519 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 4 Jul 2018 16:14:31 +0200 Subject: [PATCH] added fix perms script --- fixperms.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 fixperms.sh diff --git a/fixperms.sh b/fixperms.sh new file mode 100644 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"