Updating netid byname
You'll start these daemons after initialization is completed. It also exports all the user's characteristics stored in the /etc/passwd and /etc/group files, such as the login shell, the user's group, and home directory.
[[email protected] tmp]# service portmap start Starting portmapper: [ OK ] [[email protected] tmp]# service yppasswdd start Starting YP passwd service: [ OK ] [[email protected] tmp]# service ypserv start Setting NIS domain name NIS-SCHOOL-NETWORK: [ OK ] Starting YP server services: [ OK ] [[email protected] tmp]# [[email protected] tmp]# chkconfig portmap on [[email protected] tmp]# chkconfig yppasswdd on [[email protected] tmp]# chkconfig ypserv on [[email protected] tmp]# rpcinfo -p localhost program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100009 1 udp 681 yppasswdd 100004 2 udp 698 ypserv 100004 1 udp 698 ypserv 100004 2 tcp 701 ypserv 100004 1 tcp 701 ypserv [[email protected] tmp]# The ypbind and ypxfrd daemons won't start properly until after you initialize the NIS domain. This procedure makes all NIS-enabled, nonprivileged accounts become automatically accessible via NIS, not just newly created ones.[[email protected] tmp]# /usr/lib/yp/ypinit -m At this point, we have to construct a list of the hosts which will run NIS servers. Please continue to add the names for the other hosts, one per line. next host to add: bigboy next host to add: The current list of NIS servers looks like this: bigboy Is this correct? gmake: Entering directory `/var/yp/NIS-SCHOOL-NETWORK' Updating passwd.byname... On a NIS client, the results are identical with both showing the encrypted password.[y/n: y] y We need a few minutes to build the databases... Now that the NIS server is configured, it's time to configure the NIS clients.You will be prompted for the name of the NIS server, which in this case is bigboy. New password: Retype new password: passwd: all authentication tokens updated successfully. gmake: Leaving directory `/var/yp/NIS-SCHOOL-NETWORK' [[email protected] yp]# You can also use the getent command, which has similar syntax.With this procedure, all nonprivileged accounts are automatically accessible via NIS. [[email protected] tmp]# cd /var/yp [[email protected] yp]# make gmake: Entering directory `/var/yp/NIS-SCHOOL-NETWORK' Updating passwd.byname... Unlike ypmatch, getent doesn't provide an encrypted password when run on an NIS server, it just provides the user's entry in the /etc/passwd file.