12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

264CHAPTER 12Identity ManagementThe command doesn’t have to be executed as root on the client, but the root password ofthe NIS server must be entered before data can be changed. If is not given,the username of the user executing the yppasswd command is used.Replace with one of the following:. -p: Change user’s password, implied if no option is given.. -l: Change user’s login shell.. -f: Change user’s full name and related information displayed by the finger utility.The current value for each field is shown. To accept it, press Enter. To change it,type a new value and then press Enter. To clear the field, type none and then pressEnter.Using NIS with autofsNIS can also be configured to serve configuration files for other services such as autofs,allowing NIS clients to receive the master configuration file auto.master and any additionalautomount files such as auto.home from the NIS server. If mount points, servernames, or directory locations change, one update to the NIS server changes the data forthe entire network, and the client can retrieve the updated data by executing the serviceautofs reload command, or they will receive it automatically the next time the system isrebooted. Not having to change this data on each client system saves valuable time andeffort.First, configure autofs on the NIS server as described in Chapter 13, “Network FileSharing,” and verify that the autofs service works on the client. Then, configure the NISserver to create the autofs NIS map files by modifying the /var/yp/Makefile file:Near the top of the file is a list of variables for the autofs configuration files referenced inthe Makefile. By default, the following autofs files are declared:AUTO_MASTER = $(YPSRCDIR)/auto.masterAUTO_HOME = $(YPSRCDIR)/auto.homeAUTO_LOCAL = $(YPSRCDIR)/auto.localIf you are using additional auto.* files, add them to the list of file variables using thesame format. For example, add the following for auto.shares:AUTO_SHARES= $(YPSRCDIR)/auto.sharesModify the all target to include all the auto.* files being used on the server. By default,the all target looks like the following:all: passwd group hosts rpc services netid protocols mail \# netgrp shadow publickey networks ethers bootparams printcap \# amd.home auto.master auto.home auto.local passwd.adjunct \# timezone locale netmasks

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!