source: noc/setup.sh @ 46

Last change on this file since 46 was 45, checked in by presbrey, 16 years ago
scripts.mit.edu NOC permissions setup
File size: 491 bytes
Line 
1#!/bin/sh
2
3chmod 711 /home/noc/
4chown -R nagios:nagios /home/noc/
5
6find /home/noc/ -type f | xargs chmod 644
7find /home/noc/ -type d | xargs chmod 755
8find /home/noc/ -name '*.cgi' -or -name '*.php' -or -name '*.pl' -or -name '*.sh' | xargs chmod a+x
9
10chown -R nagios:apache /home/noc/html/ /home/noc/ng/html/ /home/noc/ng/log/ /home/noc/ng/rrd/
11chmod -R g-w /home/noc/html/* /home/noc/ng/html/*
12chmod -R g+w /home/noc/ng/log/ /home/noc/ng/rrd/
13chmod g+w /home/noc/ng/log/ /home/noc/ng/rrd/
Note: See TracBrowser for help on using the repository browser.