16 lines
329 B
Bash
Executable File
16 lines
329 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mmuser="mailman"
|
|
mmgroup="mailman"
|
|
mmuserid=41
|
|
mmgroupid=41
|
|
|
|
# make sure the user/group exists or add if not exists
|
|
/usr/bin/getent group $mmgroup || \
|
|
/usr/sbin/groupadd -g $mmgroupid $mmgroup
|
|
|
|
/usr/bin/getent passwd $mmuser || \
|
|
/usr/sbin/useradd -s /sbin/nologin -u $mmuserid -g $mmgroupid $mmuser
|
|
|
|
# End of file
|