-->
Previous | Table of Contents | Next |
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.
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:
Previous | Table of Contents | Next |