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 . next host to add: ren.stimpy.net next host to add: The current list of NIS servers looks like this: . ren.stimpy.net . Is this correct? [y/n: y] y We need some minutes to build the databases… Building /var/yp/admin/ypservers… Running /var/yp/Makefile… make[1]: Entering directory `/var/yp/admin’ Updating passwd.byname… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating passwd.byuid… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating group.byname… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating group.bygid… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating rpc.byname… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating rpc.bynumber… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating services.byname… failed to send ‘clear’ to local ypserv: RPC: Program not registered Updating netid.byname… failed to send ‘clear’ to local ypserv: RPC: Program not registered make[1]: Leaving directory `/var/yp/admin’ stimpy $ stimpy $ ls -al total 22 drwxr-xr-x 3 root root 1024 Feb 7 11:15 . drwxr-xr-x 18 root root 1024 Feb 7 10:22 .. -rw-r–r–1 root root 13980 Nov 8 14:36 Makefile drwxr-xr-x 2 root root 1024 Feb 7 11:16 admin -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 -rw-r–r–1 root root 15 Feb 7 11:15 ypservers stimpy $ page 202
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

Leave a Reply