DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Administering NIS users

Starting the yppasswdd daemon

To start the yppasswdd daemon, perform the following procedure:

  1. Log in as the NIS administrator on the master NIS server.

  2. Edit the file /etc/inet/nis.conf, and set the value of startyppass to 1.

  3. If you are using /etc/passwd and /etc/shadow as templates for your NIS password maps, skip the following step and continue with Step 5.

  4. If you are using files other than /etc/passwd and /etc/shadow as templates for your NIS password maps, comment out the following lines in /etc/init.d/nis:
    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
    fi
    
    If, 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
    fi
    
    where 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
    

  5. Enter:

    sh /etc/init.d/nis start

    to start the yppasswdd daemon.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004