14 lines
411 B
Bash
Executable File
14 lines
411 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# check for haldaemon group or add one
|
|
getent group haldaemon || /usr/sbin/groupadd -g 82 haldaemon
|
|
|
|
# check for plugdev group or add one
|
|
getent group plugdev || /usr/sbin/groupadd plugdev
|
|
|
|
# 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
|