2010-10-07 10:55:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mmuser="mailman"
|
|
|
|
mmgroup="mailman"
|
|
|
|
mmuserid=41
|
|
|
|
mmgroupid=41
|
2011-03-22 11:32:49 +01:00
|
|
|
mmhome="/usr/lib/mailman"
|
2010-10-07 10:55:35 +02:00
|
|
|
|
|
|
|
# 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 || \
|
2011-03-22 11:32:49 +01:00
|
|
|
/usr/sbin/useradd -s /sbin/nologin -d $mmhome -u $mmuserid -g $mmgroupid $mmuser
|
2010-10-07 10:55:35 +02:00
|
|
|
|
|
|
|
# End of file
|