28
28
# Add user and group
30
if ! getent passwd mandos >/dev/null; then
31
adduser --disabled-password --quiet --system \
32
--home /var/run/mandos --no-create-home \
33
--gecos "Mandos password system" --group mandos
30
# Rename old "mandos" user and group
31
case "$(getent passwd mandos)" in
32
*:Mandos\ password\ system,,,:/nonexistent:/bin/false)
33
usermod --login _mandos mandos
34
groupmod --new-name _mandos mandos
38
# Create new user and group
39
if ! getent passwd _mandos >/dev/null; then
40
adduser --system --force-badname --quiet --home /nonexistent \
41
--no-create-home --group --disabled-password \
42
--gecos "Mandos password system" _mandos