blob: d53f1811233db1c57bfcbd8799205888d0a08bf8 (
plain)
1 #!/bin/bash
2
3 if ! /usr/bin/getent passwd nagios; then
4 /usr/sbin/useradd -m -d /var/empty -s /bin/false -c "Nagios user" -U nagios
5 /usr/bin/passwd -l nagios
6 fi
7
8 if ! /usr/bin/getent group nagcmd; then
9 /usr/sbin/groupadd nagcmd
10 /usr/sbin/usermod -a -G nagcmd nagios
11 /usr/sbin/usermod -a -G nagcmd www
12 fi
|