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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

separated by commas. For example, to create a netgroup with three members, thenetgroup input file entry would be in the format: name ID, ID, ID. The member IDsin a netgroup input file entry are in the following format.([-|machine], [-|user], [domain])Where machine is a machine name, user is a user ID, <strong>and</strong> domain is the machine oruser’s <strong>NIS</strong> domain. The domain element is optional <strong>and</strong> should only be used to identifymachines or users in some other <strong>NIS</strong> domain. The machine <strong>and</strong> user element of eachmember’s entry are required, but a dash (-) is used to denote a null. There is nonecessary relationship between the machine <strong>and</strong> user elements in an entry.The following are two sample netgroup input file entries, each of which create anetgroup named admins composed of the users hauri <strong>and</strong> juanita who is in theremote domain sales <strong>and</strong> the machines altair <strong>and</strong> sirius.admins (altair, hauri), (sirius,juanita,sales)admins (altair,-), (sirius,-), (-,hauri), (-,juanita,sales)Various programs use the netgroup <strong>NIS</strong> maps for permission checking during login,remote mount, remote login, <strong>and</strong> remote shell creation. These programs includemountd, login, rlogin, <strong>and</strong> rsh. The login comm<strong>and</strong> consults the netgroup mapsfor user classifications if it encounters netgroup names in the passwd database. Themountd daemon consults the netgroup maps for machine classifications if itencounters netgroup names in the /etc/dfs/dfstab file. rlogin <strong>and</strong> rsh In fact,any program that uses the ruserok interface consults the netgroup maps for bothmachine <strong>and</strong> user classifications if they encounter netgroup names in the/etc/hosts.equiv or .rhosts files.If you add a new <strong>NIS</strong> user or machine to your network, be sure to add them toappropriate netgroups in the netgroup input file. Then use the make <strong>and</strong> yppushcomm<strong>and</strong>s to create the netgroup maps <strong>and</strong> push them to all of your <strong>NIS</strong> servers. Seenetgroup(4) for detailed information on using netgroups <strong>and</strong> netgroup input filesyntax.Working With <strong>NIS</strong> MapsThis section contains the following information:■ “Obtaining Map Information” on page 98■ “Changing a Map’s Master Server” on page 98■ “Modifying Configuration Files” on page 99■ “Modifying <strong>and</strong> Using the Makefile” on page 100Chapter 6 • Administering <strong>NIS</strong> (Tasks) 97

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

Saved successfully!

Ooh no, something went wrong!