forked from ports/contrib
11 lines
220 B
Bash
Executable File
11 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "`getent group nogroup`" ]; then
|
|
/usr/sbin/groupadd --system nogroup
|
|
fi
|
|
|
|
if [ -z "`getent passwd nobody`" ]; then
|
|
/usr/sbin/useradd -r -g nobody -M -s /bin/false nobody
|
|
/usr/bin/passwd -l nobody
|
|
fi
|