From: Lisa Marie Maginnis Date: Mon, 26 Jan 2015 17:13:02 +0000 (-0500) Subject: added perms fix to iwiki X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd67bb75a9f06287eb3a39d76f9b069b0e83be9f;p=fai-configs.git added perms fix to iwiki --- 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