modernized this permission script
[feisty_meow.git] / scripts / customize / fred / scripts / cakelampvm / revamp_web_permissions.sh
1
2 # fixes the cakelampvm permissions according to the way.
3
4 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
5
6 ##############
7
8 # make sure we have the appropriate access on a few key folders.
9 normal_perm /var/www
10
11 ##############
12
13 # change the owner for the web roots to the apache user, www-data.
14 sudo chown -R www-data:www-data /var/www
15
16 # put a couple specific ownerships into play so the appropriate user has full access.
17 sudo chown -R developer:developer /home/developer \
18   /etc/apache2 \
19   /etc/bind \
20
21
22 sudo chown -R fred:fred /home/fred \
23   /home/archives/stuffing \
24
25
26 ##############
27
28 # these directories will be given group permissons that enable web server access.
29 group_perm /var/www/html \
30   /opt/feistymeow.org \
31   /etc/apache \
32   /
33
34 ##############