15 lines
312 B
Bash
Executable File
15 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mmuser="mailman"
|
|
mmgroup="mailman"
|
|
mmhome="/var/lib/mailman"
|
|
|
|
# make sure the user/group exists or add if not exists
|
|
/usr/bin/getent group $mmgroup || \
|
|
/usr/sbin/groupadd $mmgroup
|
|
|
|
/usr/bin/getent passwd $mmuser || \
|
|
/usr/sbin/useradd -s /sbin/nologin -d $mmhome -g $mmgroup $mmuser
|
|
|
|
# End of file
|