2022-10-29 20:30:08 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "`getent group named`" ]
|
|
|
|
then
|
|
|
|
/usr/sbin/groupadd -g 25 named
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "`getent passwd named`" ]
|
|
|
|
then
|
2022-10-29 21:04:24 -05:00
|
|
|
/usr/sbin/useradd -r -u 25 -g named -d /var/named -s /bin/false named
|
2022-10-29 20:30:08 -05:00
|
|
|
/usr/bin/passwd -l named
|
|
|
|
fi
|
|
|
|
|
|
|
|
# End of file
|