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