blob: 986157172dfe08ddf9eb94d5028934f9d4c88208 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# check for haldaemon group or add one
getent group haldaemon || /usr/sbin/groupadd -g 19 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 19 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon
# lock the account
/bin/passwd -l haldaemon
|