more perms for wiki
[fai-configs.git] / scripts / IKIWIKI / 50-fix-perms.sh
... / ...
CommitLineData
1#!/bin/bash
2
3# Nuke permissions
4$ROOTCMD chown -R root.www-data /var/www/html
5$ROOTCMD chmod 750 /var/www/html
6$ROOTCMD chown -R ikiwiki.www-data /var/www/html/wiki
7$ROOTCMD find /var/www/html/wiki -type d -print0 | xargs -0 chmod 750
8$ROOTCMD find /var/www/html/wiki -type f ! -name '*cgi' -print0 | xargs -0 chmod 640
9$ROOTCMD chmod 6750 /var/www/html/wiki/ikiwiki.cgi
10$ROOTCMD find /srv/ikiwiki -type d -print0 | xargs -0 chmod 750
11$ROOTCMD find /srv/ikiwiki -type f -print0 | xargs -0 chmod 640