11 lines
322 B
Plaintext
11 lines
322 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# check for haldaemon group or add one
|
||
|
getent group haldaemon || /usr/sbin/groupadd -g 82 haldaemon
|
||
|
|
||
|
# check for haldaemon user or add one
|
||
|
getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 82 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon
|
||
|
|
||
|
# lock the account
|
||
|
/usr/bin/passwd -l haldaemon
|