Inside Linux For example, the following dialog shows (Web design course)
Inside Linux For example, the following dialog shows the current state of NIS (on my system) before executing the ypinit command. This is for a SuSE 6.3 Linux system. The YaST utility was first used to install both the ypserver and ypclient packages from the CD-ROM media. stimpy $ /var/yp Makefile nicknames ypmake.conf.sample stimpy $ ls -al total 20 drwxr-xr-x 2 root root 1024 Feb 7 10:22 . drwxr-xr-x 18 root root 1024 Feb 7 10:22 .. -rw-r–r–1 root root 13980 Nov 8 14:36 Makefile -rw-r–r–1 root root 185 Nov 8 14:36 nicknames -rw-r–r–1 root root 1114 Nov 8 14:36 ypmake.conf.sample stimpy $ I have not discussed the files that you see in the /var/yp directory. They are important, however, because they contribute to the build process. The /var/yp/nicknames file is a translation table for NIS maps. This file contains a list of aliases and the associated NIS maps. Each line contains a single entry. The following shows the contents of the file shown in the previous dialog: stimpy $ cat nicknames passwd passwd.byname group group.byname networks networks.byaddr hosts hosts.byname protocols protocols.bynumber services services.byname aliases mail.aliases ethers ethers.byname stimpy $ This is the default content for the file on this SuSE system. The ypmake.conf.sample is provided as a template for creating a true ypmake configuration file. Continuing with our efforts, the following dialog demonstrates the execution of the ypinit command on this system. In addition, other commands are executed (bold text) to show the results of the ypinit command. The domain name created on this system is admin. stimpy $ domainname admin stimpy $ domainname admin stimpy $ /usr/lib/yp/ypinit -m At this point, we have to construct a list of the hosts which will run NIS servers. ren.stimpy.net is in the list of NIS server hosts. Please continue to add the names for the other hosts, one per line. When you are done with the list, type a
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.