Passwd nis [Notfoundreturn files

This tells your system to look for password information in NIS and the lookup will fail if the appropriate information is not found.

Next, save a copy of your system's password file and then remove all entries in the existing password file for "normal users'' (those with UIDs of 1000 or more). As the last line of the new, shorter password file, add the following: +::::::

This tells NIS to append the contents of the password map (file) retrieved from the NIS server whenever password information is requested.

Note that the entries for any individual accounts (including your own) have been removed from the abbreviated password file. This enables you to do a fairly simple test to determine whether NIS is working. If you can log in using an account that is not present in the password file on your client system, but is present in the password file on your NIS server system, then NIS is working correctly.

To set up a NIS client, log in as root or use the su command to become root on the system you are using as a NIS client and do the following:

1. Make sure that the NIS client software package ypbind is installed on your Linux system.

2. Set the domain name of the NIS domain to which this new client will belong. This should be the same name as the domain name set earlier in this chapter. To set the NIS domain name (in this case, to the domain foo.com), issue a command such as the following:

Was this article helpful?

0 0

Post a comment