From cd67bb75a9f06287eb3a39d76f9b069b0e83be9f Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 26 Jan 2015 12:13:02 -0500 Subject: [PATCH] added perms fix to iwiki --- scripts/IKIWIKI/50-fix-perms.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/IKIWIKI/50-fix-perms.sh diff --git a/scripts/IKIWIKI/50-fix-perms.sh b/scripts/IKIWIKI/50-fix-perms.sh new file mode 100755 index 0000000..8d5f7ec --- /dev/null +++ b/scripts/IKIWIKI/50-fix-perms.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Nuke permissions +$ROOTCMD chown -R root.www-data /var/www/html +$ROOTCMD chmod 750 /var/www/html +$ROOTCMD chown -R ikiwiki.www-data /var/www/html/wiki +$ROOTCMD find /var/www/html/wiki -type d -print0 | xargs -0 chmod 750 +$ROOTCMD find /var/www/html/wiki -type f ! -name '*cgi' | xargs -0 chmod 640 +$ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi -- 2.25.1