15 lines
242 B
Bash
Executable File
15 lines
242 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "`getent group named`" ]
|
|
then
|
|
/usr/sbin/groupadd -g 25 named
|
|
fi
|
|
|
|
if [ -z "`getent passwd named`" ]
|
|
then
|
|
/usr/sbin/useradd -r -u 25 -g named -d /var/named -s /bin/false named
|
|
/usr/bin/passwd -l named
|
|
fi
|
|
|
|
# End of file
|