|
|
To start the yppasswdd daemon, perform the following procedure:
if [ $ismaster = 1 -a $startyppass = 1 ]; then touch /var/yp/yppasswdd.log /usr/lib/netsvc/yp/rpc.yppasswdd /etc/passwd /etc/shadow \ > /dev/console 2>&1 fiIf, for example, you are using /var/yp/passwd and /var/yp/shadow as templates, replace the commented-out lines with:
if [ -f /usr/lib/netsvc/yp/rpc.yppasswdd /var/yp/passwd /var/yp/shadow \ /var/yp/domainname ]; then /usr/lib/netsvc/yp/rpc.yppasswdd /var/yp/passwd /var/yp/shadow \ -m passwd DIR=/var/yp fiwhere domainname is the name of your NIS domain directory.
Note that when the -m option is given, a ypbuild is forced in /var/yp immediately following a modification of the file, and the arguments that follow the -m are passed over to ypbuild. If you want to avoid having this ypbuild take place at all times, eliminate it, and control the pushing of the password maps through crontab:
if [ -f /usr/lib/netsvc/yp/rpc.yppasswdd /var/yp/passwd /var/yp/shadow \ /var/yp/domainname ]; then /usr/lib/netsvc/yp/rpc.yppasswdd /var/yp/passwd fi
to start the yppasswdd daemon.