/etc/init/yppasswdd.conf is in nis 3.17-32ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | description "NIS password update daemon"
author "Steve Langasek <steve.langasek@canonical.com>"
start on started ypserv
stop on stopping ypserv
respawn
expect daemon
pre-start script
NISSERVER=false
[ -f /usr/sbin/ypbind ] && [ -f /etc/defaultdomain ] || { stop; exit 0; }
[ -f /etc/default/nis ] && . /etc/default/nis
[ "$NISSERVER" = master ] || { stop; exit 0; }
end script
script
YPCHANGEOK=chsh
YPPWDDIR=/etc
[ -f /etc/default/nis ] && . /etc/default/nis
E=
if [ -n "$YPCHANGEOK" ]; then
OIFS="$IFS"; IFS="$IFS,"
for i in $YPCHANGEOK
do
case $i in
chsh|chfn)
E="$E -e $i"
;;
esac
done
IFS="$OIFS"
fi
if [ -n "$YPPWDDIR" ]; then
YPPWDDIRARGS="-D $YPPWDDIR"
fi
exec rpc.yppasswdd $YPPWDDIRARGS $E $YPPASSWDDARGS
end script
|