blob: 8ead2c87f8fc49633595b82b11fa5bf869d0851d (
plain)
1 #!/bin/sh
2
3 # check for asterisk group or add one
4 getent group asterisk || /usr/sbin/groupadd -g 79 asterisk
5
6 # check for asterisk user or add one
7 getent passwd asterisk || /usr/sbin/useradd -g asterisk -u 79 -d /var/empty -s /bin/false -c "Asterisk User" asterisk
8
9 # lock the account
10 /usr/bin/passwd -l asterisk
|