16 lines
329 B
Plaintext
16 lines
329 B
Plaintext
![]() |
#!/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
|