Linux Unleashed, Third Edition:NIS and YP
-->
Previous
Table of Contents
Next
Setting Up NIS Clients
Setting up an NIS client requires that you have the domain name set properly, either with the domainname command or an entry in the rc startup files, and that the ypbind command has been issued properly, and the NIS client is bound to the NIS server.
When an entry in the /etc/passwd or /etc/group file must be searched for a match, the local files are examined first, and then the server is queried if no match is found. In order to instruct your client to go to the NIS master to match a login, you need to add the following entry to the bottom of the /etc/passwd file:
+:*:0:0:::
If you know the format of the /etc/passwd file entries, you will recognize this as a legal entry with no information specified. The plus sign in the username field is to instruct ypbind to query the NIS master. This is called a marker entry. The plus sign entry can be anywhere in the file. When it is reached, NIS is used, and the file is read as before if no match has been found.
Summary
As you can see, setting up NIS is not overly difficult. The hardest part of the process is usually getting the files that NIS uses to generate maps into proper shape, removing old entries and ensuring that security is maintained. Setting up the master and a slave can take less than half an hour, as most of the steps are automated. Often, actually finding the paths to the NIS utilities is more complex than setting up the server! From here you can read more about:
Setting up Network File System to share directories across entire networks in Chapter 43, NFS.
Setting up cron and at to automate background processing in Chapter 46, cron and at.
Setting up your own Internet server or WWW server in Chapter 47, Setting up an Internet Site.
Previous
Table of Contents
Next
Wyszukiwarka
Podobne podstrony:
ReadMe (751)mbdch20 751mbdch20 752747 751752 aclekarzeid&75220030813 Instalacja wodnaid!752Obraz 752751 753751 (2)więcej podobnych podstron