13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

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

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

5. Run make.# make mapnameWhere mapname is the name of the map you want to make.▼How to Modify the Makefile to Delete DatabasesIf you do not want the Makefile to produce maps for a specific database, edit theMakefile as follows.1. Delete the name of the database from the all rule.2. Delete or comment out the database rule for the database you want to delete.For example, to delete the hosts database, the hosts.time entry should beremoved.3. Remove the time rule.For example, to delete the hosts database, the hosts: hosts.time entryshould be removed.4. Remove the map from the master <strong>and</strong> slave servers.Updating <strong>and</strong> Modifying Existing MapsAfter you have installed <strong>NIS</strong>, you might discover that some maps require frequentupdating while others never need to change. For example, the passwd.byname mapcan change frequently on a large company’s network, while the auto_master mapchanges little, if at all.As mentioned in “Default <strong>NIS</strong> Maps” on page 72, the default location of the default<strong>NIS</strong> maps is on the master server in /var/yp/domainname, where domainname is thename of the <strong>NIS</strong> domain. When you need to update a map, you can use one of twoupdating procedures, depending on whether or not it is a default map.■■A default map is a map in the default set created by ypinit from the networkdatabases.Nondefault maps can be any of the following.■■■Maps included with an application purchased from a vendorMaps created specifically for your siteMaps created from a nontext fileThe following sections explain how to use various updating tools. In practice, youmight decide to only use them if you add nondefault maps or change the set of <strong>NIS</strong>servers after the system is already up <strong>and</strong> running.Chapter 6 • Administering <strong>NIS</strong> (Tasks) 103

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

Saved successfully!

Ooh no, something went wrong!