Changeset 49 for noc/setup.sh


Ignore:
Timestamp:
Dec 18, 2006, 8:05:27 AM (16 years ago)
Author:
presbrey
Message:
scripts.mit.edu NOC permissions setup for nagios configuration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • noc/setup.sh

    r45 r49  
    11#!/bin/sh
    22
     3chown -R nagios:nagios /home/noc/
    34chmod 711 /home/noc/
    4 chown -R nagios:nagios /home/noc/
    55
    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
     6find /home/noc/ -type f | xargs -n1 chmod 644
     7find /home/noc/ -type d | xargs -n1 chmod 755
     8find /home/noc/ -name '*.cgi' -or -name '*.php' -or -name '*.pl' -or -name '*.sh' | xargs -n1 chmod a+x
    99
    1010chown -R nagios:apache /home/noc/html/ /home/noc/ng/html/ /home/noc/ng/log/ /home/noc/ng/rrd/
     
    1212chmod -R g+w /home/noc/ng/log/ /home/noc/ng/rrd/
    1313chmod g+w /home/noc/ng/log/ /home/noc/ng/rrd/
     14
     15if [ ! -h /etc/nagios ]; then
     16        mv /etc/nagios /etc/nagios_OLD
     17        ln -nfs /home/noc/nagios/ /etc/nagios
     18fi
     19
     20chown -R root:root /home/noc/nagios/
     21find /home/noc/nagios/ -type f | xargs -n1 chmod 644
     22find /home/noc/nagios/ -type d | xargs -n1 chmod 755
     23
     24chown -R root:nagios /home/noc/nagios/private/
     25chmod -R o-rwx /home/noc/nagios/private/
Note: See TracChangeset for help on using the changeset viewer.