1 2 3 4 5 6 7 8 9
#!/bin/sh user=asterisk home=/var/lib/asterisk adduser -h $home -s /bin/false -D $user 2>/dev/null mkdir -p $home chown $user:$user $home exit 0