<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>Bienvenue sur le site admin-sys</title>
	<link>http://www.admin-sys.org/</link>
	<description>Bienvenu sur le site admin-sys.</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net (Sarka-SPIP)</generator>

	<image>
		<title>Bienvenue sur le site admin-sys</title>
		<url>https://www.admin-sys.org/local/cache-vignettes/L144xH55/siteon0-02f93.png?1694605449</url>
		<link>http://www.admin-sys.org/</link>
		<height>55</height>
		<width>144</width>
	</image>



 
	<item xml:lang="fr">
		<title>Si probleme(s) avec NIS : (HPUX)</title>
		<link>https://www.admin-sys.org/?si-probleme-s-avec-nis-hpux</link>
		<guid isPermaLink="true">https://www.admin-sys.org/?si-probleme-s-avec-nis-hpux</guid>
		<dc:date>2009-04-17T16:53:00Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Jerome ROBERT</dc:creator>



		<description>
&lt;p&gt;Si probleme(s) avec NIS : If You Receive an NIS &#034;Server Not Responding&#034; Message Issue the /usr/sbin/ping(1M) command on the NIS client to make sure the NIS server is up and is reachable on the network. If the ping command fails, either the server is down, or the network has a problem. If the server is down, reboot it, or wait for it to come back up. For information on troubleshooting network problems, see Installing and Administering LAN/9000 Software . To boot your (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.admin-sys.org/?-nis-" rel="directory"&gt;NIS&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Si probleme(s) avec NIS :&lt;/p&gt;
&lt;p&gt;If You Receive an NIS &#034;Server Not&lt;br class='autobr' /&gt;
Responding&#034; Message&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the /usr/sbin/ping(1M) command on&lt;br class='autobr' /&gt;
the NIS client to make sure the NIS server is up and is reachable on&lt;br class='autobr' /&gt;
the network. If the ping command fails, either the server is down, or&lt;br class='autobr' /&gt;
the network has a problem. If the server is down, reboot it, or wait&lt;br class='autobr' /&gt;
for it to come back up. For information on troubleshooting network&lt;br class='autobr' /&gt;
problems, see Installing and Administering LAN/9000 Software .&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;To boot your NIS client without waiting&lt;br class='autobr' /&gt;
for the server to come up, boot the client in single user mode, set&lt;br class='autobr' /&gt;
NIS_CLIENT=0 in the /etc/rc.config.d/namsvrs file, then boot your&lt;br class='autobr' /&gt;
client the rest of the way up.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;Issue the domainname command (with no&lt;br class='autobr' /&gt;
arguments) on both the NIS server and the NIS client to check whether&lt;br class='autobr' /&gt;
their domain names are the same. If they are different, log in as&lt;br class='autobr' /&gt;
root to the NIS client and issue the following command to change its&lt;br class='autobr' /&gt;
domain name :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;domainname domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the ps -ef command on the NIS&lt;br class='autobr' /&gt;
server to check whether ypserv is running. If it is not, follow these&lt;br class='autobr' /&gt;
steps :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;1.In the /etc/rc.config.d/namesvrs file&lt;br class='autobr' /&gt;
on the NIS server, make sure the following variables are set :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;NIS_MASTER_SERVER=1&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Issue the following command to start&lt;br class='autobr' /&gt;
up the NIS server :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.server start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Make sure an NIS server exists on the&lt;br class='autobr' /&gt;
same subnet as the NIS client. The client broadcasts its bind&lt;br class='autobr' /&gt;
request, and it binds to the first server that responds to the&lt;br class='autobr' /&gt;
request. Broadcasts do not cross gateways or routers, so the server&lt;br class='autobr' /&gt;
must be on the same subnet as the client in order to receive the bind&lt;br class='autobr' /&gt;
request. If you cannot configure an NIS server on the same subnet as&lt;br class='autobr' /&gt;
your NIS clients, see To Bind an NIS Client to a Server on a&lt;br class='autobr' /&gt;
Different Subnet.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If a User Cannot Log In&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the user has recently changed&lt;br class='autobr' /&gt;
passwords, ask the user to try logging in with the old password. If&lt;br class='autobr' /&gt;
the user can log in using the old password, follow these steps :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;1.Issue the ps -ef command on the NIS&lt;br class='autobr' /&gt;
master server to make sure the yppasswdd daemon is running. If it is&lt;br class='autobr' /&gt;
not, issue the&lt;/p&gt;
&lt;p&gt;following command to start all the NIS&lt;br class='autobr' /&gt;
server processes :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.server start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Check the cron scripts on the slave&lt;br class='autobr' /&gt;
servers to make sure transfers of the passwd map from the master&lt;br class='autobr' /&gt;
server are frequent enough. Once per hour is usually frequent enough,&lt;br class='autobr' /&gt;
but frequent map transfers may cause too much network traffic. You&lt;br class='autobr' /&gt;
might want to schedule map transfers for late at night, and advise&lt;br class='autobr' /&gt;
users to make their password changes just before they go home.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command on the NIS&lt;br class='autobr' /&gt;
client to determine which master server supplies the passwd map to&lt;br class='autobr' /&gt;
the client :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich -m passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the server does not respond, see If&lt;br class='autobr' /&gt;
You Receive an NIS 'Server Not Responding' Message.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the ypwhich command returns the name&lt;br class='autobr' /&gt;
of the NIS master server, log in as root to the master server and&lt;br class='autobr' /&gt;
make sure the user has an entry in its /etc/passwd file. Then, issue&lt;br class='autobr' /&gt;
the following commands on the master server to generate the NIS&lt;br class='autobr' /&gt;
passwd database from the /etc/passwd file and push it to the NIS&lt;br class='autobr' /&gt;
slave servers :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp&lt;/p&gt;
&lt;p&gt;/usr/ccs/bin/make passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the domainname command (with no&lt;br class='autobr' /&gt;
arguments) to make sure the client's default domain is the domain&lt;br class='autobr' /&gt;
served by the NIS master server. If it is not, log in as root to the&lt;br class='autobr' /&gt;
NIS client, and issue the following command to change its domain&lt;br class='autobr' /&gt;
name :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;domainname domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command to check&lt;br class='autobr' /&gt;
whether the NIS client has an entry in the passwd database on the NIS&lt;br class='autobr' /&gt;
server to which it is bound :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypmatch username passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the client has no entry in the&lt;br class='autobr' /&gt;
passwd database, issue the following command on the NIS server to&lt;br class='autobr' /&gt;
which the client is bound :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/ypxfr passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;This command transfers the passwd&lt;br class='autobr' /&gt;
database from the NIS master server to the server where you issue the&lt;br class='autobr' /&gt;
command.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;If the user's NIS client is bound to a&lt;br class='autobr' /&gt;
slave server, make sure the slave server is listed in the NIS master&lt;br class='autobr' /&gt;
server's ypservers database. Follow these steps :&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.Issue the following command on the&lt;br class='autobr' /&gt;
NIS client to determine which server the client is bound to :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Log into the NIS master server, and&lt;br class='autobr' /&gt;
issue the following command :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp/domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.Issue the following command on the&lt;br class='autobr' /&gt;
NIS master server to write the contents of the ypservers database to&lt;br class='autobr' /&gt;
a temporary file :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm -u ypservers &gt;&lt;br class='autobr' /&gt;
tempfile&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;4.If the NIS slave server is not listed&lt;br class='autobr' /&gt;
in tempfile, use a text editor to add it, and then issue the&lt;br class='autobr' /&gt;
following command to rebuild the ypservers database :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm tempfile ypservers&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If you are using NIS compat mode, make&lt;br class='autobr' /&gt;
sure the NIS escape entry in the /etc/passwd file on the client does&lt;br class='autobr' /&gt;
not have an asterisk in the password field. On HP systems, the NIS&lt;br class='autobr' /&gt;
escape entry in the /etc/passwd file should be&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;+: :-2:60001:: :&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;If You Receive an &#034;Unknown Host&#034;&lt;br class='autobr' /&gt;
Message&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command to trace a&lt;br class='autobr' /&gt;
lookup of the unknown host :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/contrib/bin/nsquery hosts hostname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The trace will indicate which name&lt;br class='autobr' /&gt;
services (BIND, NIS, NIS+, or /etc/hosts) were queried and in what&lt;br class='autobr' /&gt;
order. If your host is not performing lookups the way you want, see&lt;br class='autobr' /&gt;
Configuring the Name Service Switch for instructions on configuring&lt;br class='autobr' /&gt;
the Name Service Switch.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command on the NIS&lt;br class='autobr' /&gt;
client to determine which master server supplies the hosts map :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich -m hosts&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the server does not respond, see If&lt;br class='autobr' /&gt;
You Receive an NIS 'Server Not Responding' Message.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the ypwhich command returns the name&lt;br class='autobr' /&gt;
of the NIS master server, log in as root to the master server and&lt;br class='autobr' /&gt;
make sure the unknown host is listed in its /etc/hosts file. Then,&lt;br class='autobr' /&gt;
issue the following commands on the master server to generate the NIS&lt;br class='autobr' /&gt;
hosts database from the /etc/hosts file and push it to the NIS slave&lt;br class='autobr' /&gt;
servers :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp&lt;/p&gt;
&lt;p&gt;/usr/ccs/bin/make hosts&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the domainname command (with no&lt;br class='autobr' /&gt;
arguments) to make sure the client's default domain is the domain&lt;br class='autobr' /&gt;
served by the NIS master server. If it is not, log in as root to the&lt;br class='autobr' /&gt;
NIS client and issue the following command to change its domain name :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;domainname domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command to check&lt;br class='autobr' /&gt;
whether the unknown host is listed in the hosts database on the NIS&lt;br class='autobr' /&gt;
server to which the client is&lt;/p&gt;
&lt;p&gt;bound :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypmatch hostname hosts&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the host is not listed in the hosts&lt;br class='autobr' /&gt;
database, issue the following command on the NIS server to which the&lt;br class='autobr' /&gt;
client is bound :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/ypxfr hosts&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;This command transfers the hosts&lt;br class='autobr' /&gt;
database from the NIS master server to the server where you issue the&lt;br class='autobr' /&gt;
command.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;If the NIS client is bound to a slave&lt;br class='autobr' /&gt;
server, make sure the slave server is listed in the NIS master&lt;br class='autobr' /&gt;
server's ypservers database. Follow these steps :&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.Issue the following command on the&lt;br class='autobr' /&gt;
NIS client to determine which server the client is bound to :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Log in as root to the NIS master&lt;br class='autobr' /&gt;
server and issue the following command to change to the directory&lt;br class='autobr' /&gt;
where the domain databases reside :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp/domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.On the NIS master server, issue the&lt;br class='autobr' /&gt;
following command to write the contents of the ypservers database to&lt;br class='autobr' /&gt;
a temporary file :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm -u ypservers &gt;&lt;br class='autobr' /&gt;
tempfile&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;4.If the NIS slave server is not listed&lt;br class='autobr' /&gt;
in tempfile, use a text editor to add it, and then issue the&lt;br class='autobr' /&gt;
following command to rebuild the ypservers database :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm tempfile ypservers&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;If an NIS Client Cannot Bind to a&lt;br class='autobr' /&gt;
Server&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If NIS commands return any of the&lt;br class='autobr' /&gt;
following messages,&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;ypcat : can't bind to an NIS server for&lt;br class='autobr' /&gt;
domain domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;ypmatch : can't match key.&lt;/p&gt;
&lt;p&gt;reason : can't communicate with ypbind&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;ypwhich : clntudp_create error&lt;br class='autobr' /&gt;
RPC_PROG_NOT_REGISTERED&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;then ypbind is not running on the&lt;br class='autobr' /&gt;
client. Issue the following command to start all the NIS client&lt;br class='autobr' /&gt;
processes :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.client start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If NIS Returns Incorrect Information&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command on the NIS&lt;br class='autobr' /&gt;
client to determine which master server supplies the appropriate NIS&lt;br class='autobr' /&gt;
map :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich -m mapname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the server does not respond, see If&lt;br class='autobr' /&gt;
You Receive an NIS 'Server Not Responding' Message.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;Log in as root to the NIS master&lt;br class='autobr' /&gt;
server, and issue the following command to check the contents of the&lt;br class='autobr' /&gt;
appropriate NIS map :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypcat -k mapname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the map contents are not correct,&lt;br class='autobr' /&gt;
edit the ASCII file from which the map is generated. Then issue the&lt;br class='autobr' /&gt;
following commands to regenerate the map and push it to the slave&lt;br class='autobr' /&gt;
servers :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp&lt;/p&gt;
&lt;p&gt;/usr/ccs/bin/make mapname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the domainname command (with no&lt;br class='autobr' /&gt;
arguments) to make sure the client's default domain is the domain&lt;br class='autobr' /&gt;
served by the NIS master server. If it is not, log in as root to the&lt;br class='autobr' /&gt;
NIS client, and issue the following command to change its domain&lt;br class='autobr' /&gt;
name :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;domainname domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Issue the following command on the NIS&lt;br class='autobr' /&gt;
client to check the contents of the map on the NIS server to which&lt;br class='autobr' /&gt;
the client is bound :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypcat -k mapname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If the contents are not correct, log in&lt;br class='autobr' /&gt;
as root to the server that serves the NIS client, and issue the&lt;br class='autobr' /&gt;
following command :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/ypxfr mapname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;This command transfers the map from the&lt;br class='autobr' /&gt;
NIS master server to the server where you issue the command.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;If the NIS client is bound to a slave&lt;br class='autobr' /&gt;
server, make sure the slave server is listed in the NIS master&lt;br class='autobr' /&gt;
server's ypservers database. Follow these steps :&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.Issue the following command on the&lt;br class='autobr' /&gt;
NIS client to determine which server the client is bound to :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Log in as root to the NIS master&lt;br class='autobr' /&gt;
server and issue the following command to change to the directory&lt;br class='autobr' /&gt;
where the domain databases reside :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cd /var/yp/domainname&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.On the NIS master server, issue the&lt;br class='autobr' /&gt;
following command to write the contents of the ypservers database to&lt;br class='autobr' /&gt;
a temporary file :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm -u ypservers &gt;&lt;br class='autobr' /&gt;
tempfile&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;4.If the NIS slave server is not listed&lt;br class='autobr' /&gt;
in tempfile, use a text editor to add it, and then issue the&lt;br class='autobr' /&gt;
following command to rebuild the ypservers database :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/makedbm tempfile ypservers&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Make sure the slave servers have cron&lt;br class='autobr' /&gt;
scripts that schedule regular updates of the map.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
	<item xml:lang="fr">
		<title>Configuration d'un client NIS : (HPUX)</title>
		<link>https://www.admin-sys.org/?configuration-d-un-client-nis-hpux</link>
		<guid isPermaLink="true">https://www.admin-sys.org/?configuration-d-un-client-nis-hpux</guid>
		<dc:date>2009-04-17T15:07:36Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Jerome ROBERT</dc:creator>



		<description>
&lt;p&gt;Configuration d'un client NIS : en bref : v&#233;rifier si ypserv tourne sur le Master ? &lt;br class='autobr' /&gt; personnalis&#233; les fichiers /etc/passwd et /etc/group domainname domainname modifier /etc/rc.config.d/namesvrs /sbin/init.d/nis.client stop &lt;br class='autobr' /&gt; /sbin/init.d/nis.client start 1&#176; modification du fichier /etc/passwd : Supprimer toutes les entr&#233;es superieure ou egale a 100 pour UID &lt;br class='autobr' /&gt;
Ajouter la ligne ci dessous a la fin : + : :-2:60001: : : Le signe (+) signifie au processuse de login d'aller (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.admin-sys.org/?-nis-" rel="directory"&gt;NIS&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;H1&gt;Configuration d'un client NIS :&lt;/H1&gt;
&lt;H3&gt;en bref : &lt;/H3&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;v&#233;rifier si ypserv tourne sur le&lt;br class='autobr' /&gt;
Master ?&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;personnalis&#233; les fichiers&lt;br class='autobr' /&gt;
/etc/passwd et /etc/group&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;domainname domainname&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;modifier /etc/rc.config.d/namesvrs&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.client stop&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;H3&gt;1&#176; modification du fichier /etc/passwd :&lt;/H3&gt;
&lt;pre&gt; &lt;/pre&gt;&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;
Supprimer toutes les entr&#233;es superieure ou egale a 100 pour&lt;br class='autobr' /&gt;
UID&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Ajouter la ligne ci dessous a la fin :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;+: :-2:60001:: :&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Le signe (+) signifie au processuse de&lt;br class='autobr' /&gt;
login d'aller voir les NIS.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The -2 in the user ID field restricts&lt;br class='autobr' /&gt;
the access of people who may attempt to log in using &#034;+&#034; as&lt;br class='autobr' /&gt;
a valid user name when NIS is not running. Anyone who successfully&lt;br class='autobr' /&gt;
logs in as &#034;+&#034; will be granted only the access permissions&lt;br class='autobr' /&gt;
of user nobody.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Pour plus d'information man 4 passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;&lt;U&gt;exemple :&lt;/U&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;root:0AnhFBmriKvHA:0:3: :/ :/bin/ksh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;daemon :*:1:5: :/ :/bin/sh &lt;/ADDRESS&gt;
&lt;ADDRESS&gt;bin :*:2:2: :/bin :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;adm :*:4:4: :/usr/adm :/bin/sh&lt;/ADDRESS&gt;&lt;ADDRESS&gt;uucp :*:5:3: :/usr/spool/uucppublic :/usr/lib/uucp/uucico&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;lp :*:9:7: :/usr/spool/lp :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;hpdb :*:27:1:ALLBASE :/ :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;+: :-2:60001:: :&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;pre&gt; &lt;/pre&gt;&lt;H3&gt;
2&#176; modification du fichier /etc/group :&lt;/H3&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Supprimer tous les groupes non&lt;br class='autobr' /&gt;
systemes&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Supprimer toutes les entr&#233;es&lt;br class='autobr' /&gt;
superieure ou egale a 100 pour UID&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Ajouter la ligne ci dessous a la fin :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;+ :* :*&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;&lt;U&gt;exemple&lt;/U&gt; :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;root::0:rootl,sam&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;other::1 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;bin::2 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;sys::3 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;adm::4 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;daemon::5 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;mail::6 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;lp::7 :&lt;/ADDRESS&gt;&lt;ADDRESS&gt;+ :* :*&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;H3&gt;
3&#176; v&#233;rification&lt;/H3&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;v&#233;rifier que le serveur NIS&lt;br class='autobr' /&gt;
fonctionne, et que ypserv est en m&#233;more.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;modification /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
avec :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;NIS_DOMAIN=domainname&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_SLAVE_SERVER=0&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_CLIENT=1&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_MASTER_SERVER=0&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;H3&gt;4&#176; rien ne va plus ...&lt;/H3&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.client stop&lt;/ADDRESS&gt;&lt;ADDRESS&gt;/sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;pour tester faite la commande suivant :&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/usr/bin/ypwhich -m &lt;/ADDRESS&gt;
&lt;pre&gt; &lt;/pre&gt;&lt;H1&gt;
pour en savoir plus ....&lt;/H1&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;
To Tell Users How to Use yppasswd&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Tell all the users in your NIS domain&lt;br class='autobr' /&gt;
that they must use /usr/bin/yppasswd or passwd -r nis instead of the&lt;br class='autobr' /&gt;
passwd command when they want to change their login passwords.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Tell users that, when they want to&lt;br class='autobr' /&gt;
change their login passwords, they should do so just before they&lt;br class='autobr' /&gt;
leave for the day. This will allow time for the updated NIS maps on&lt;br class='autobr' /&gt;
the master server to be pushed to the slave servers.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The yppasswd command is a link to the&lt;br class='autobr' /&gt;
passwd -r nis command. It changes the /etc/passwd file on the NIS&lt;br class='autobr' /&gt;
master server, regenerates the NIS passwd maps from the updated&lt;br class='autobr' /&gt;
/etc/passwd file, and then pushes the NIS passwd maps to the slave&lt;br class='autobr' /&gt;
servers.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;For more information, see the following&lt;br class='autobr' /&gt;
man pages : yppasswd(1), yppasswdd(1M), passwd(1), ypxfr(1M), and&lt;br class='autobr' /&gt;
yppush(1M).&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;&lt;B&gt;&lt;U&gt;To Prevent a Client from Binding&lt;br class='autobr' /&gt;
to Unknown Servers&lt;/U&gt;&lt;/B&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;1.On the NIS client, create a file&lt;br class='autobr' /&gt;
called /var/yp/secureservers, if it does not already exist.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;2.Add lines to the file with the&lt;br class='autobr' /&gt;
following syntax :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;address_mask IP_address&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The IP_address is the internet address&lt;br class='autobr' /&gt;
of an NIS server or the subnet of an NIS server from which the client&lt;br class='autobr' /&gt;
will accept NIS information.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The address_mask indicates which bits&lt;br class='autobr' /&gt;
in the IP_address field are important. If a bit is set in the&lt;br class='autobr' /&gt;
address_mask field, the corresponding bit in the address of any NIS&lt;br class='autobr' /&gt;
server must match the same bit in the IP_address field.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;3.Issue the following commands to kill&lt;br class='autobr' /&gt;
and restart the ypbind process :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;/sbin/init.d/nis.client stop&lt;/p&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;/sbin/init.d/nis.client start&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;If an NIS server host has multiple&lt;br class='autobr' /&gt;
network interface cards, add a line to the secureservers file for the&lt;br class='autobr' /&gt;
IP address of each card.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;If you start ypbind with the -ypset&lt;br class='autobr' /&gt;
option and issue the ypset command to bind to a specific server, the&lt;br class='autobr' /&gt;
/var/yp/secureservers file is ignored, and the client may bind to any&lt;br class='autobr' /&gt;
server.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Type man 1M ypbind at the HP-UX prompt&lt;br class='autobr' /&gt;
for more information.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;Examples from /var/yp/secureservers&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The following line from a&lt;br class='autobr' /&gt;
/var/yp/secureservers file allows the NIS client to bind only to the&lt;br class='autobr' /&gt;
server at IP address 20.21.22.23. Because every bit is set in the&lt;br class='autobr' /&gt;
address mask, the IP address of the NIS server must match the&lt;br class='autobr' /&gt;
IP_address field exactly, or the client will not bind to it.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;255.255.255.255 20.21.22.23&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;The following line from a&lt;br class='autobr' /&gt;
/var/yp/secureservers file allows the client to bind to any NIS&lt;br class='autobr' /&gt;
server on the network 20.21.22.0. The last 8 bits of the server's IP&lt;br class='autobr' /&gt;
address are ignored, because the last 8 bits of the address mask are&lt;br class='autobr' /&gt;
set to 0. The client may bind to any server whose IP address begins&lt;br class='autobr' /&gt;
20.21.22.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;255.255.255.0 20.21.22.23&lt;/p&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;To Bind an NIS Client to a Server on a&lt;br class='autobr' /&gt;
Different Subnet Hewlett-Packard recommends that you configure a&lt;br class='autobr' /&gt;
server on each subnet where you have NIS clients ; however, if you&lt;br class='autobr' /&gt;
cannot do that, follow these steps to force an NIS client to bind to&lt;br class='autobr' /&gt;
a server on a different subnet :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;1.Log in as root to the NIS client.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;2.Add the -ypset option to the&lt;br class='autobr' /&gt;
YPBIND_OPTIONS variable in the /etc/rc.config.d/namesvrs file, as&lt;br class='autobr' /&gt;
follows :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;YPBIND_OPTIONS=&#034;-ypset&#034;&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;3.In the /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
file, set the YPSET_ADDR variable to the IP address of an NIS server,&lt;br class='autobr' /&gt;
as in the following example :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;YPSET_ADDR=&#034;15.13.115.168&#034;&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;4.Issue the following commands to&lt;br class='autobr' /&gt;
restart the NIS client :&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;/sbin/init.d/nis.client stop&lt;/p&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;/sbin/init.d/nis.client start&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;If the server you specify in the ypset&lt;br class='autobr' /&gt;
command is unavailable when your client boots up, your client will&lt;br class='autobr' /&gt;
broadcast a request for a server to its local network. If no server&lt;br class='autobr' /&gt;
exists on the local network, the client will hang.&lt;/p&gt;
&lt;BR&gt;
&lt;p STYLE=&#034;margin-bottom: 0cm&#034;&gt;For more information, type man 1M ypset&lt;br class='autobr' /&gt;
or man 1M ypbind.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
	<item xml:lang="fr">
		<title>Configuration d'un serveur NIS escale (HPUX)</title>
		<link>https://www.admin-sys.org/?configuration-d-un-serveur-nis-120</link>
		<guid isPermaLink="true">https://www.admin-sys.org/?configuration-d-un-serveur-nis-120</guid>
		<dc:date>2009-04-17T15:04:16Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Jerome ROBERT</dc:creator>



		<description>
&lt;p&gt;Configuration d'un serveur NIS escale : en bref : v&#233;rifier si ypserv tourne sur le Master ? &lt;br class='autobr' /&gt; personnalis&#233; les fichiers /etc/passwd et /etc/group modificer le PATH de root : PATH=$PATH :/var/yp :/usr/lib/netsvc/yp :/usr/ccs/bin domainname domainname /usr/etc/yp/ypinit -s serveur_nis_master &lt;br class='autobr' /&gt; modifier /etc/rc.config.d/namesvrs /sbin/init.d/nis.server start /sbin/init.d/nis.client start 1&#176; modification du fichier /etc/passwd : &lt;br class='autobr' /&gt;
Supprimer toutes les entr&#233;es superieure ou (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.admin-sys.org/?-nis-" rel="directory"&gt;NIS&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;H1&gt;Configuration d'un serveur NIS escale :&lt;/H1&gt;
&lt;H3&gt;en bref : &lt;/H3&gt;
&lt;p&gt;v&#233;rifier si ypserv tourne sur le&lt;br class='autobr' /&gt;
Master ?&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;personnalis&#233; les fichiers&lt;br class='autobr' /&gt;
/etc/passwd et /etc/group&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;modificer le PATH de root :&lt;br class='autobr' /&gt;
PATH=$PATH :/var/yp :/usr/lib/netsvc/yp :/usr/ccs/bin&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;domainname domainname&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;ADDRESS STYLE=&#034;margin-bottom: 0.5cm&#034;&gt;/usr/etc/yp/ypinit -s
serveur_nis_master&lt;/ADDRESS&gt;&lt;BR&gt;
&lt;p&gt;modifier /etc/rc.config.d/namesvrs&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.server start&lt;/ADDRESS&gt;
&lt;ADDRESS STYLE=&#034;margin-bottom: 0.5cm&#034;&gt;/sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;H3&gt;1&#176; modification du fichier /etc/passwd :&lt;/H3&gt;
&lt;pre&gt; &lt;/pre&gt;
&lt;p&gt;Supprimer toutes les entr&#233;es superieure ou egale a 100 pour&lt;br class='autobr' /&gt;
UID&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Ajouter la ligne ci dessous a la fin :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;+: :-2:60001:: :&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;Le signe (+) signifie au processuse de&lt;br class='autobr' /&gt;
login d'aller voir les NIS.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The -2 in the user ID field restricts&lt;br class='autobr' /&gt;
the access of people who may attempt to log in using &#034;+&#034; as&lt;br class='autobr' /&gt;
a valid user name when NIS is not running. Anyone who successfully&lt;br class='autobr' /&gt;
logs in as &#034;+&#034; will be granted only the access permissions&lt;br class='autobr' /&gt;
of user nobody.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Pour plus d'information man 4 passwd&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;&lt;U&gt;exemple :&lt;/U&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;root:0AnhFBmriKvHA:0:3: :/ :/bin/ksh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;daemon :*:1:5: :/ :/bin/sh &lt;/ADDRESS&gt;
&lt;ADDRESS&gt;bin :*:2:2: :/bin :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;adm :*:4:4: :/usr/adm :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;uucp :*:5:3: :/usr/spool/uucppublic :/usr/lib/uucp/uucico&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;lp :*:9:7: :/usr/spool/lp :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;hpdb :*:27:1:ALLBASE :/ :/bin/sh&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;+: :-2:60001:: :&lt;/ADDRESS&gt;&lt;pre&gt; &lt;/pre&gt;&lt;H3&gt;
2&#176; modification du fichier /etc/group :&lt;/H3&gt;
&lt;p&gt;Supprimer tous les groupes non&lt;br class='autobr' /&gt;
systemes&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Supprimer toutes les entr&#233;es&lt;br class='autobr' /&gt;
superieure ou egale a 100 pour UID&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Ajouter la ligne ci dessous a la fin :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;+ :* :*&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;&lt;U&gt;exemple :&lt;/U&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;root::0:rootl,sam&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;other::1 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;bin::2 :&lt;/ADDRESS&gt;&lt;ADDRESS&gt;sys::3 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;adm::4 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;daemon::5 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;mail::6 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;lp::7 :&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;+ :* :*&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;H3&gt;
3&#176; v&#233;rification&lt;/H3&gt;
&lt;p&gt;v&#233;rifier que le serveur NIS&lt;br class='autobr' /&gt;
fonctionne, et que ypserv est en m&#233;more.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;modification du PATH de root :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;PATH=$PATH :/var/yp :/usr/lib/netsvc/yp :/usr/ccs/bin&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;modification /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
avec :&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_DOMAIN=domainname&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_SLAVE_SERVER=1&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_CLIENT=1&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;NIS_MASTER_SERVER=0&lt;/ADDRESS&gt;
&lt;H3&gt;4&#176; rien ne va plus ...&lt;/H3&gt;
&lt;ADDRESS&gt;/usr/bin/domainname domainname &lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;p&gt;domainname est le nom du domain NIS&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/usr/sbin/ypinit -s NIS_server_name [DOM=domainname]&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.server start&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;H3&gt;5&#176; plannification des mises &#224; jours :&lt;/H3&gt;&lt;ADDRESS&gt;cp /usr/newconfig/var/yp/ypxfr_1perday /var/yp&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;cp /usr/newconfig/var/yp/ypxfr_2perday /var/yp&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;cp /usr/newconfig/var/yp/ypxfr_1perhour /var/yp&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;crontab -l &gt; fichier_crontab &lt;/ADDRESS&gt;
&lt;p&gt;# cela permet de concerver l'existant&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;p&gt;Ajouter les trois lignes au fichier&lt;/p&gt;
&lt;p&gt;&#034;fichier_crontab&#034;&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;0 21 * * * /var/yp/ypxfr_1perday&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;30 5,19 * * * /var/yp/ypxfr_2perday&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;15 * * * * /var/yp/ypxfr_1perhour &lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;crontab fichier_crontab&lt;/ADDRESS&gt;
&lt;pre&gt; &lt;/pre&gt;&lt;H2&gt;
Pour plus d'information .... &lt;/H2&gt;
&lt;p&gt;For more information, see the following&lt;br class='autobr' /&gt;
man pages : domainname(1), ypinit(1M), and ypfiles(4).&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;&lt;B&gt;&lt;U&gt;&lt;I&gt;To Verify Your NIS Slave&lt;br class='autobr' /&gt;
Server Configuration&lt;/I&gt;&lt;/U&gt;&lt;/B&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.Log in as root to the slave server.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.In the /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
file, add -ypset to the YPBIND_OPTIONS variable :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;YPBIND_OPTIONS=&#034;-ypset&#034;&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.Issue the following commands to&lt;br class='autobr' /&gt;
restart ypbind (the NIS client process) on the slave server :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.client stop&lt;/p&gt;
&lt;p&gt;/sbin/init.d/nis.client start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;4.Issue the following command to force&lt;br class='autobr' /&gt;
the NIS client process on the slave server to bind to the server&lt;br class='autobr' /&gt;
process on the same host :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/ypset slave_server_name&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;5.Issue the following command to check&lt;br class='autobr' /&gt;
whether the NIS slave server is working :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/usr/bin/ypwhich&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The ypwhich command should return the&lt;br class='autobr' /&gt;
host name of the slave server.&lt;/p&gt;
&lt;p&gt;If the ypwhich command does not return&lt;br class='autobr' /&gt;
the name of the slave server, il y a un probleme ....&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;6.In the /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
file, remove -ypset from the YPBIND_OPTIONS variable :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;YPBIND_OPTIONS=&#034;&#034;&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;7.Issue the following commands to&lt;br class='autobr' /&gt;
restart ypbind (the NIS client process) on the slave server :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.client stop&lt;/p&gt;
&lt;p&gt;/sbin/init.d/nis.client start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;For more information, see the following&lt;br class='autobr' /&gt;
man pages : ypbind(1M), ypset(1M), and ypwhich(1).&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;&lt;B&gt;&lt;U&gt;&lt;I&gt;To Schedule Regular Map&lt;br class='autobr' /&gt;
Transfers from the NIS Master Server&lt;/I&gt;&lt;/U&gt;&lt;/B&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.Log in as root to the slave server.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Copy the ypxfr_1perday,&lt;br class='autobr' /&gt;
ypxfr_2perday, and ypxfr_1perhour scripts from the&lt;br class='autobr' /&gt;
/usr/newconfig/var/yp directory to the /var/yp directory :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;cp /usr/newconfig/var/yp/ypxfr_1perday&lt;br class='autobr' /&gt;
/var/yp&lt;/p&gt;
&lt;p&gt;cp /usr/newconfig/var/yp/ypxfr_2perday&lt;br class='autobr' /&gt;
/var/yp&lt;/p&gt;
&lt;p&gt;cp /usr/newconfig/var/yp/ypxfr_1perhour&lt;br class='autobr' /&gt;
/var/yp&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.Create a crontab file that invokes&lt;br class='autobr' /&gt;
these files at regular times. Following is an example crontab file :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;0 21 * * * /var/yp/ypxfr_1perday&lt;/p&gt;
&lt;p&gt;30 5,19 * * * /var/yp/ypxfr_2perday&lt;/p&gt;
&lt;p&gt;15 * * * * /var/yp/ypxfr_1perhour&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;This file runs the ypxfr_1perday script&lt;br class='autobr' /&gt;
at 9:00 PM every night.&lt;/p&gt;
&lt;p&gt;It runs the ypxfr_2perday script at&lt;br class='autobr' /&gt;
5:30 AM and 7:30 PM every day.&lt;/p&gt;
&lt;p&gt;It runs the ypxfr_1perhour at 15&lt;br class='autobr' /&gt;
minutes past every hour.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;4.Issue the following command to enter&lt;br class='autobr' /&gt;
the file into crontab,&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;crontab filename&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;where filename is the crontab file you&lt;br class='autobr' /&gt;
just created.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If you have created customized NIS maps&lt;br class='autobr' /&gt;
for your domain, you will have to add them to the appropriate&lt;br class='autobr' /&gt;
scripts.&lt;/p&gt;
&lt;p&gt;You can also use the scripts provided&lt;br class='autobr' /&gt;
as templates for creating your own scripts.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;In some domains, transferring the&lt;br class='autobr' /&gt;
passwd maps once per hour generates too much network traffic.&lt;/p&gt;
&lt;p&gt;If you find this is the case, schedule&lt;br class='autobr' /&gt;
transfers of the passwd maps for less frequent intervals.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If you have multiple slave servers,&lt;br class='autobr' /&gt;
schedule map transfers for different times on different servers, so&lt;br class='autobr' /&gt;
all the servers are not performing transfers at the same time.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;For more information, see the following&lt;br class='autobr' /&gt;
man pages : cron(1M), crontab(1), and ypxfr(1M).&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;&lt;B&gt;&lt;U&gt;&lt;I&gt;To Restrict Access to the&lt;br class='autobr' /&gt;
Slave Server&lt;/I&gt;&lt;/U&gt;&lt;/B&gt;&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt;1.On the NIS slave server, create a&lt;br class='autobr' /&gt;
file called /var/yp/securenets, if it does not already exist.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;2.Add lines to the file with the&lt;br class='autobr' /&gt;
following syntax :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;address_mask IP_address&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The IP_address is the internet address&lt;br class='autobr' /&gt;
of an NIS client, NIS slave server, or subnet that may request NIS&lt;br class='autobr' /&gt;
information or transfer NIS maps from the NIS master server.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The address_mask indicates which bits&lt;br class='autobr' /&gt;
in the IP_address field are important.&lt;/p&gt;
&lt;p&gt;If a bit is set in the address_mask&lt;br class='autobr' /&gt;
field, the corresponding bit in the source address of any incoming&lt;br class='autobr' /&gt;
NIS&lt;/p&gt;
&lt;p&gt;requests must match the same bit in the&lt;br class='autobr' /&gt;
IP_address field.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;3.Issue the following commands to kill&lt;br class='autobr' /&gt;
and restart the ypserv process :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;/sbin/init.d/nis.server stop&lt;/p&gt;
&lt;p&gt;/sbin/init.d/nis.server start&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;If a client or slave host has multiple&lt;br class='autobr' /&gt;
network interface cards, add a line to the securenets file for the IP&lt;br class='autobr' /&gt;
address of each card.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Type man 4 securenets at the HP-UX&lt;br class='autobr' /&gt;
prompt for more information.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Examples from /var/yp/securenets&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The following line from a&lt;br class='autobr' /&gt;
/var/yp/securenets file allows only the NIS client at IP address&lt;br class='autobr' /&gt;
10.11.12.13 to request information from the NIS slave server. Because&lt;br class='autobr' /&gt;
every bit is set in the address mask, the source IP address on the&lt;br class='autobr' /&gt;
NIS request must match exactly, or the slave server will not return&lt;br class='autobr' /&gt;
the requested information.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;255.255.255.255 10.11.12.13&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;The following line from a&lt;br class='autobr' /&gt;
/var/yp/securenets file allows any host on the network 10.11.12.0 to&lt;br class='autobr' /&gt;
request NIS information or transfer NIS maps from the slave server.&lt;br class='autobr' /&gt;
The last 8 bits of the IP address are ignored, because the last 8&lt;br class='autobr' /&gt;
bits of the address mask are set to 0. Any host whose IP address&lt;br class='autobr' /&gt;
begins 10.11.12 will be allowed access to the slave server.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;255.255.255.0 10.11.12.13&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
	<item xml:lang="fr">
		<title>Configuration d'un serveur NIS ma&#238;tre HPUX</title>
		<link>https://www.admin-sys.org/?configuration-d-un-serveur-nis</link>
		<guid isPermaLink="true">https://www.admin-sys.org/?configuration-d-un-serveur-nis</guid>
		<dc:date>2009-04-17T15:02:37Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Jerome ROBERT</dc:creator>



		<description>
&lt;p&gt;Configuration d'un serveur NIS ma&#238;tre : en bref : &lt;br class='autobr' /&gt;
concat&#233;nation de tout les fichiers du parc pour un cr&#233;er un de chaque sur le serveur NIS. pour le fichier passwd : sur le serveur NIS, il doit y avoir que les utilisateurs sur les clients , il doit y avoir root, et les d&#233;mons &lt;br class='autobr' /&gt; pour le fichier group : sur le serveur NIS, il doit y avoir que les groupes utilisateurs sur les clients, il doit y avoir que les groupes systemes pour le fichiers hosts : &lt;br class='autobr' /&gt; sur le serveur NIS, (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.admin-sys.org/?-nis-" rel="directory"&gt;NIS&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;H1&gt;Configuration d'un serveur NIS ma&#238;tre :&lt;/H1&gt;
&lt;H3&gt;en bref : &lt;/H3&gt;
&lt;p&gt;concat&#233;nation de tout les&lt;br class='autobr' /&gt;
fichiers du parc pour un cr&#233;er un de chaque sur le serveur&lt;br class='autobr' /&gt;
NIS.&lt;/p&gt;
&lt;p&gt;&lt;U&gt;pour le fichier passwd :&lt;/U&gt;&lt;/p&gt;
&lt;UL&gt; &lt;LI&gt;
&lt;p&gt;sur le serveur NIS, il doit y&lt;br class='autobr' /&gt; avoir que les utilisateurs&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;sur les clients , il doit y avoir&lt;br class='autobr' /&gt; root, et les d&#233;mons&lt;/p&gt;
&lt;/UL&gt;
&lt;BR&gt;
&lt;p&gt;&lt;U&gt;pour le fichier group :&lt;/U&gt;&lt;/p&gt;
&lt;UL&gt; &lt;LI&gt;
&lt;p&gt;sur le serveur NIS, il doit y&lt;br class='autobr' /&gt; avoir que les groupes utilisateurs&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;sur les clients, il doit y avoir&lt;br class='autobr' /&gt; que les groupes systemes&lt;/p&gt;
&lt;/UL&gt;
&lt;BR&gt;
&lt;p&gt;&lt;U&gt;pour le fichiers hosts :&lt;/U&gt;&lt;/p&gt;
&lt;UL&gt; &lt;LI&gt;
&lt;p&gt;sur le serveur NIS, il ne doit pas&lt;br class='autobr' /&gt; avoir de doublon IP, nom de machine et d'alias.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;sur les clients, on pourra&lt;br class='autobr' /&gt; supprimer ce fichier (cf. configuration d'un client NIS)&lt;/p&gt;
&lt;/UL&gt;
&lt;p&gt;puis modifier /etc/rc.config.d/namesvrs&lt;br class='autobr' /&gt;
et /var/yp/Makefile&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;copier les fichiers a mapper dans&lt;br class='autobr' /&gt;
/var/yp/etc/ ( ou cp -r /etc /var/yp/etc/ , mais c'est pas bien&lt;br class='autobr' /&gt; !!!)&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;modificer le PATH de root : &lt;br class='autobr' /&gt;
PATH=$PATH :/var/yp :/usr/lib/netsvc/yp :/usr/ccs/bin&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;/usr/bin/domainname domainname&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/usr/sbin/ypinit -m&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.server start&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;/sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;H2&gt;
&lt;U&gt;A. pr&#233;paration des fichiers passwd, group, hosts.&lt;/U&gt;&lt;/H2&gt;&lt;pre&gt; &lt;/pre&gt;&lt;H3&gt;
1&#176; r&#233;cuperation de tout les fichiers /etc/passwd du parc
de la soci&#233;t&#233;.&lt;/H3&gt;
&lt;pre&gt; &lt;/pre&gt;
&lt;p&gt; sur chaque machine cliente :&lt;/p&gt;
&lt;ADDRESS&gt; cp /etc/passwd
/etc/passwd.$(hostname)&lt;/ADDRESS&gt;
&lt;p&gt; ATTENTION : dans le fichier&lt;br class='autobr' /&gt;
passwd des futur clients NIS, il doit y avoir que les demons et aucun&lt;br class='autobr' /&gt;
utilisateur.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt; puis copier&lt;br class='autobr' /&gt;
/etc/passwd.$(hostname) sur le serveur NIS dans /var/yp/etc/&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt; sur le serveur NIS :&lt;/p&gt;
&lt;ADDRESS&gt; cp /etc/passwd /var/yp/etc/passwd&lt;/ADDRESS&gt;&lt;H3&gt;2&#176; traitement du fichier passwd sur le serveur NIS :&lt;/H3&gt;
&lt;p&gt; ATTENTION : dans le fichier&lt;br class='autobr' /&gt;
passwd du serveur NIS, il doit y avoir que les utilisateurs et aucun&lt;br class='autobr' /&gt;
demon.&lt;/p&gt;
&lt;ADDRESS&gt;cd /var/yp/etc&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;cat passwd passwd.hostname1 passwd.hostname2... &gt;
passwd.temp&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;sort -o /var/yp/etc/passwd.temp -t : -k1,1
/var/yp/etc/passwd.temp&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des logins en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon dans le&lt;br class='autobr' /&gt;
login.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;sort -o /etc/passwd.temp -t : -k3n,3 /etc/passwd.temp&lt;/ADDRESS&gt;&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des UID en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon dans les UID.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt; Quand le fichier est correct :&lt;/p&gt;
&lt;ADDRESS&gt; mv
/var/yp/etc/passwd.temp /var/yp/etc/passwd&lt;/ADDRESS&gt;
&lt;ADDRESS&gt; rm
/var/yp/etc/passwd.*&lt;/ADDRESS&gt;&lt;BR&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;H3&gt;
3&#176; r&#233;cuperation de tout les fichiers /etc/group du parc de
la soci&#233;t&#233;&lt;/H3&gt;
&lt;p&gt;sur chaque machine cliente :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;cp /etc/group /etc/group.$(hostname)&lt;/ADDRESS&gt;
&lt;p&gt;puis copier /etc/group.$(hostname) sur&lt;br class='autobr' /&gt;
le serveur NIS dans /var/yp/etc/&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;sur le serveur NIS :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;cp /etc/group /var/yp/etc/group&lt;/ADDRESS&gt;
&lt;H3&gt;4&#176; traitement du fichier group sur le serveur NIS :&lt;/H3&gt;&lt;ADDRESS&gt;cd /var/yp/etc&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;cat group group.* &gt; group.temp&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;sort -o /var/yp/etc/group.temp -t : -k1,1
/var/yp/etc/group.temp&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des noms de groupe en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon dans les noms&lt;br class='autobr' /&gt;
de groupe.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;sort -o /etc/group.temp -t : -k3n,3 /etc/group.temp&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des GID en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon dans les GID.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Quand le fichier est correct :&lt;/p&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;mv /var/yp/etc/group.temp /var/yp/etc/group&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;rm /var/yp/etc/group.*&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;H3&gt;5&#176; r&#233;cuperation de tout les fichiers /etc/hosts du
parc de la soci&#233;t&#233;&lt;/H3&gt;
&lt;ADDRESS&gt;&lt;BR&gt;&lt;/ADDRESS&gt;
&lt;p&gt;sur chaque machine cliente :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;cp /etc/hosts /etc/hosts.$(hostname)&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;puis copier /etc/hosts.$(hostname) sur&lt;br class='autobr' /&gt;
le serveur NIS dans /var/yp/etc/&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;sur le serveur NIS :&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;cp /etc/hosts /var/yp/etc/hosts&lt;/ADDRESS&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;H3&gt;
6&#176; traitement du fichier hosts sur le serveur NIS :&lt;/H3&gt;
&lt;ADDRESS&gt;cd /var/yp/etc&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;cat hosts hosts.* &gt; hosts.temp&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;sort -o /etc/hosts.temp /etc/hosts.temp&lt;/ADDRESS&gt;&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des IP en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon dans les&lt;br class='autobr' /&gt;
addresses IP.&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;sort -o /etc/hosts.temp -b -k2,2 /etc/hosts.temp&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;Cette derniere commande permet trier le&lt;br class='autobr' /&gt;
fichier pour faciliter la recherche des noms de machines en double.&lt;/p&gt;
&lt;p&gt;Il ne faut pas de doublon. Ainsi que&lt;br class='autobr' /&gt;
dans les alias de machine.&lt;/p&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;p&gt; Quand le fichier est correct :&lt;/p&gt;
&lt;ADDRESS&gt; mv
/var/yp/etc/hosts.temp /var/yp/etc/hosts&lt;/ADDRESS&gt;
&lt;ADDRESS&gt; rm
/var/yp/etc/hosts.*&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;pre&gt; &lt;/pre&gt;&lt;H2&gt;
&lt;p&gt;&lt;U&gt;B. Modification des fichiers de configuration :&lt;/U&gt;&lt;/p&gt;
&lt;/H2&gt;
&lt;H3&gt;1&#176; modification de /etc/rc.config.d/namesvrs :&lt;/H3&gt;
&lt;p&gt; # domainname represente le nom&lt;br class='autobr' /&gt;
du domaine NIS&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt; NIS_DOMAIN=domainname&lt;/p&gt;
&lt;p&gt; NIS_MASTER_SERVER=1&lt;/p&gt;
&lt;p&gt; NIS_CLIENT=1&lt;/p&gt;
&lt;p&gt; NIS_SLAVE_SERVER=0&lt;/p&gt;
&lt;p&gt; YPPASSWDD_OPTIONS=&#034;/var/yp/etc/passwd -m passwd&lt;br class='autobr' /&gt;
PWFILE=/var/yp/etc/passwd&#034;&lt;/p&gt;
&lt;H3&gt;2&#176; modification de /var/yp/Makefile&lt;/H3&gt;
&lt;p&gt;Dans ce fichier, il va falloir modifier&lt;br class='autobr' /&gt;
la variable DIR :&lt;/p&gt;
&lt;p&gt;DIR=/var/yp/etc/&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Et modifier la liste de fichier a&lt;br class='autobr' /&gt;
mapper :&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;pour cela, /all : (c'est une cmd de&lt;br class='autobr' /&gt;
vi) , cela va nous positionner sur le paragraphe all, ce dernier&lt;br class='autobr' /&gt;
liste les fichier a mapper.&lt;/p&gt;
&lt;BR&gt;
&lt;p&gt;Il faud maintenant v&#233;rifier&lt;br class='autobr' /&gt;
l'existance de ces derniers dans /etc et les copier dans /var/yp/etc/&lt;/p&gt;
&lt;BR&gt;
&lt;H2&gt;&lt;U&gt;C. Cr&#233;ation du serveur NIS&lt;/U&gt;&lt;/H2&gt;
&lt;H3&gt;1&#176; modification du PATH de root :&lt;/H3&gt;
&lt;p&gt; PATH=$PATH :/var/yp :/usr/lib/netsvc/yp :/usr/ccs/bin&lt;/p&gt;
&lt;BR&gt;
&lt;H3&gt;2&#176; Bient&#244;t fin&lt;/H3&gt;
&lt;p&gt;# domainname represente le nom du&lt;br class='autobr' /&gt;
domaine NIS&lt;/p&gt;
&lt;BR&gt;
&lt;ADDRESS&gt;/usr/bin/domainname domainname&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;p&gt;/usr/sbin/ypinit -m&lt;/p&gt;
&lt;p&gt;La commande ypinit permet de cr&#233;er&lt;br class='autobr' /&gt;
un serveur nis, en lisant ses informations dans /var/yp/Makefile. Il&lt;br class='autobr' /&gt;
faudra lui indiquer les serveurs shaves s'il y en a. Pour sortir,&lt;br class='autobr' /&gt;
appuyer sur &#034;Entree&#034;.&lt;/p&gt;
&lt;BR&gt;
&lt;H3&gt;3&#176; Joueur ou pas joueur ??&lt;/H3&gt;
&lt;BR&gt;
&lt;ADDRESS&gt; shutdown -r 0&lt;/ADDRESS&gt;
&lt;p&gt;ou&lt;/p&gt;
&lt;ADDRESS&gt; /sbin/init.d/nis.server start&lt;/ADDRESS&gt;
&lt;ADDRESS&gt; /sbin/init.d/nis.client start&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;H3&gt;4&#176; La minute de v&#233;rit&#233; ...&lt;/H3&gt;&lt;ADDRESS&gt;/usr/bin/ypwhich -m #doit nous afficher la liste de table
g&#233;n&#233;r&#233;.&lt;/ADDRESS&gt;
&lt;ADDRESS&gt;&lt;BR&gt;
&lt;/ADDRESS&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;H2&gt;Pour en savoir plus ....&lt;/H2&gt;
&lt;p&gt;&lt;A NAME=&#034;torestrictclientandslaveserveraccesstothemasterserver&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;cehciafj&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Restrict Client and Slave Server Access to the&lt;br class='autobr' /&gt;
Master Server &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;masterservernisrestrictingaccessto&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;securityonnismasterserver&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;varypsecurenetsfileseesecurenetsfile&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;securenetsfile&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; On the NIS master server, create a file called &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/securenets&lt;/code&gt;,&lt;br class='autobr' /&gt; if it does not already exist.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Add lines to the file with the following syntax :&lt;/p&gt;
&lt;pre&gt;&lt;I&gt;address_mask&lt;/I&gt; &lt;I&gt;IP_address&lt;/I&gt;&lt;/pre&gt;
&lt;p&gt;	The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;IP_address&lt;/I&gt;&lt;/code&gt; is the internet address of an NIS&lt;br class='autobr' /&gt; client, NIS slave server, or subnet that may request NIS information&lt;br class='autobr' /&gt; or transfer NIS maps from the NIS master server.&lt;BR&gt;
&lt;BR&gt;The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;address_mask&lt;/I&gt;&lt;/code&gt; indicates which bits in the&lt;br class='autobr' /&gt; &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;IP_address&lt;/I&gt;&lt;/code&gt; field are important. If a bit is set&lt;br class='autobr' /&gt; in the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;address_mask&lt;/I&gt;&lt;/code&gt; field, the corresponding bit&lt;br class='autobr' /&gt; in the source address of any incoming NIS requests must match the&lt;br class='autobr' /&gt; same bit in the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;IP_address&lt;/I&gt;&lt;/code&gt; field.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;nisserverscript&#034;&gt;&lt;/A&gt;Issue the following commands to&lt;br class='autobr' /&gt; kill and restart the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypserv&lt;/code&gt; process :&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;/sbin/init.d/nis.server stop /sbin/init.d/nis.server start&lt;/pre&gt;
&lt;/OL&gt;
&lt;p&gt;If a client or slave host has multiple network interface cards,&lt;br class='autobr' /&gt;
add a line to the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;securenets&lt;/code&gt; file for the IP address of&lt;br class='autobr' /&gt;
each card.&lt;/p&gt;
&lt;p&gt;Type &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;man 4 securenets&lt;/code&gt; at the HP-UX prompt for more&lt;br class='autobr' /&gt;
information.&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;examplesfromvarypsecurenets&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;securenetsfileexamples&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=3&gt;Examples from &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/securenets&lt;/code&gt; &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;The&lt;br class='autobr' /&gt;
following line from a &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/securenets&lt;/code&gt; file allows&lt;br class='autobr' /&gt;
only the NIS client at IP address 10.11.12.13 to request information&lt;br class='autobr' /&gt;
from the NIS master server. Because every bit is set in the address&lt;br class='autobr' /&gt;
mask, the source IP address on the NIS request must match exactly, or&lt;br class='autobr' /&gt;
the master server will not return the requested information.&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;255.255.255.255 10.11.12.13&lt;/pre&gt;
&lt;p&gt;
The following line from a &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/securenets&lt;/code&gt; file allows&lt;br class='autobr' /&gt;
any host on the network 10.11.12.0 to request NIS information or&lt;br class='autobr' /&gt;
transfer NIS maps from the master server. The last 8 bits of the IP&lt;br class='autobr' /&gt;
address are ignored, because the last 8 bits of the address mask are&lt;br class='autobr' /&gt;
set to 0. Any host whose IP address begins 10.11.12 will be allowed&lt;br class='autobr' /&gt;
access to the master server.&lt;/p&gt;
&lt;pre&gt;255.255.255.0 10.11.12.13&lt;/pre&gt;
&lt;p&gt;&lt;A NAME=&#034;tocheckthecontentsofannismap&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb21348&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadjdgh&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Check the Contents of an NIS Map &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;UL TYPE=DISC&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;ypcat&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;mapsnislistingcontentsof&#034;&gt;&lt;/A&gt;Issue&lt;br class='autobr' /&gt; the following command to verify that an NIS map contains the data&lt;br class='autobr' /&gt; you expect it to contain :&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;/usr/bin/ypcat -k &lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;
&lt;/UL&gt;
&lt;p&gt;The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;-k&lt;/code&gt; option lists the key for each item in the map&lt;br class='autobr' /&gt;
as well as the data associated with the key. For example, in the&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;netgroup&lt;/code&gt; map, the netgroup name is the key. Without the&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;-k&lt;/code&gt; option, &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypcat&lt;/code&gt; would list all the data&lt;br class='autobr' /&gt;
associated with each netgroup name, but not the netgroup name itself.&lt;/p&gt;
&lt;p&gt;For more information on the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypcat&lt;/code&gt; command, type&lt;/p&gt;
&lt;div class=&#034;precode&#034;&gt;&lt;pre class='spip_code spip_code_block' dir='ltr' style='text-align:left;'&gt;&lt;code&gt;man 1 ypcat&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;at the HP-UX prompt.&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;tomodifyannismap&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb26548&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjabdfcc&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Modify an NIS Map &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;mapsnismodifying&#034;&gt;&lt;/A&gt;Log in as root to the NIS&lt;br class='autobr' /&gt; master server.&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Make your changes to the source file for the NIS map. For&lt;br class='autobr' /&gt; example, if you want to change the NIS &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt; map, make&lt;br class='autobr' /&gt; your changes to the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/hosts&lt;/code&gt; file.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Issue the following commands to generate the map and push it&lt;br class='autobr' /&gt; to the slave servers :&lt;/p&gt;
&lt;pre&gt;cd /var/yp /usr/ccs/bin/make &lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;
&lt;p&gt; &lt;A NAME=&#034;make&#034;&gt;&lt;/A&gt;If your slave servers are not up and running yet,&lt;br class='autobr' /&gt; run the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt; command with the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;NOPUSH&lt;/code&gt; flag&lt;br class='autobr' /&gt; set to 1 :&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;cd /var/yp /usr/ccs/bin/make NOPUSH=1 &lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;&lt;/OL&gt;
&lt;p&gt;&lt;A NAME=&#034;ypservers&#034;&gt;&lt;/A&gt;This procedure works for all NIS maps&lt;br class='autobr' /&gt;
except the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt; map, which has no source file. For&lt;br class='autobr' /&gt;
instructions on modifying the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt; map,&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;netiddatabase&#034;&gt;&lt;/A&gt;If you make changes to the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;passwd&lt;/code&gt;,&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;group&lt;/code&gt;, or &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt; maps, regenerate the&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;netid.byname&lt;/code&gt; map. The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;netid.byname&lt;/code&gt; map is a&lt;br class='autobr' /&gt;
mapping of users to groups, where each user is followed by a list of&lt;br class='autobr' /&gt;
all the groups to which the user belongs. The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;netid.byname&lt;/code&gt;&lt;br class='autobr' /&gt;
map is generated from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/passwd&lt;/code&gt; and &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/group&lt;/code&gt;&lt;br class='autobr' /&gt;
files.&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;p&gt;For more information, see the following man pages : &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt;(1),&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypmake&lt;/code&gt;(1M), &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;yppush&lt;/code&gt;(1M), and &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypxfr&lt;/code&gt;(1M).&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;toaddanautomountermaptoyournisdomain&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb22103&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadajgf&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Add an Automounter Map to Your NIS Domain &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;Log in as root to the NIS master server.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;ypinit&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;mapsnisautomounter&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;automountermapsinnis&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/usr/sbin/ypinit&lt;/code&gt; script, use a text editor to&lt;br class='autobr' /&gt; add the automounter map to the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;MASTER_MAPS&lt;/code&gt; list, as&lt;br class='autobr' /&gt; follows :&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;BR&gt;&lt;/p&gt;
&lt;TABLE BORDER=0 CELLPADDING=15 CELLSPACING=0&gt; &lt;TR&gt; &lt;TD BGCOLOR=&#034;#337733&#034;&gt; &lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;FONT SIZE=3&gt;&lt;FONT COLOR=&#034;#ffffff&#034;&gt;MASTER_MAPS=&#034;group.bygid group.byname \&lt;BR&gt; hosts.byaddr bosts.byname netgroup netgroup.byhost \&lt;BR&gt; netgroup.byuser networks.byaddr networks.byname passwd.byname \&lt;BR&gt; passwd.byuid protocols.byname protocols.bynumber rpc.bynumber \&lt;BR&gt; services.byname vhe_list publickey.byname netid.byname mail.byaddr \&lt;BR&gt; mail.aliases auto_master rpc.byname servi.bynp auto_&lt;I&gt;mapname&lt;/I&gt;&#034;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;BR&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt; file, add the&lt;br class='autobr' /&gt; automounter map to the list of maps that begins with &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;all:&lt;/code&gt;,&lt;br class='autobr' /&gt; as follows :&lt;/p&gt;
&lt;pre&gt;all: passwd group hosts networks rpc services protocols \ netgroup aliases publickey netid vhe_list auto_master \ auto_&lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;make1&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;makefilenis&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;makedbm&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;mapsnisadding&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;nismaps&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt; file, copy the statement that&lt;br class='autobr' /&gt; begins &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;$(YPDBDIR)/$(DOM)/auto_master.time&lt;/code&gt; to the space&lt;br class='autobr' /&gt; below it. Change all occurrences of &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_master&lt;/code&gt; to the&lt;br class='autobr' /&gt; name of the map you are adding.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;BR&gt;&lt;/p&gt;
&lt;TABLE BORDER=0 CELLPADDING=15 CELLSPACING=0&gt; &lt;TR&gt;&lt;TD BGCOLOR=&#034;#337733&#034;&gt; &lt;div class=&#034;precode&#034;&gt;&lt;pre class='spip_code spip_code_block' dir='ltr' style='text-align:left;'&gt;&lt;code&gt;&lt;FONT SIZE=3&gt;&lt;FONT COLOR=&#034;#ffffff&#034;&gt;$ (YPDBDIR)/$(DOM)/auto_master.time: $(DIR)/auto_master&lt;BR&gt; @(sed -e &#034;s/^[ | ]*//g&#034; -e &#034;/^#/d&#034; -e s/#.*$$// &lt;&lt;BR&gt;$(DIR)/auto_master $(CHKPIPE)) |&lt;BR&gt; $(MAKEDBM) - $(YPDBDIR) /$(DOM)/auto_master;&lt;BR&gt; @touch $(YPDBDIR)/$(DOM)/auto_master.time;&lt;BR&gt; @echo &#034;updated auto_master&#034;;&lt;BR&gt; @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto_master; fi&lt;BR&gt; @if [ ! $(NOPUSH) ]; then echo &#034;pushed auto_master&#034;; fi&lt;BR&gt; &lt;BR&gt;$ (YPDBDIR)/$(DOM)/auto_&lt;I&gt;mapmame&lt;/I&gt;.time: $(DIR)/auto_&lt;I&gt;mapname &lt;/I&gt; @(sed -e &#034;s/^[ | ]*//g&#034; -e &#034;/^#/d&#034; -e s/#.*$$// &lt;&lt;BR&gt;$(DIR)/auto_&lt;I&gt;mapname&lt;/I&gt; $(CHKPIPE)) |&lt;BR&gt; $(MAKEDBM) - $(YPDBDIR) /$(DOM)/auto_&lt;I&gt;mapname&lt;/I&gt;;&lt;BR&gt; @touch $(YPDBDIR)/$(DOM)/auto_&lt;I&gt;mapname&lt;/I&gt;.time;&lt;BR&gt; @echo &#034;updated auto_&lt;I&gt;mapname&lt;/I&gt;&#034;;&lt;BR&gt; @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto_&lt;I&gt;mapname&lt;/I&gt;; fi&lt;BR&gt; @if [ ! $(NOPUSH) ]; then echo &#034;pushed auto_&lt;I&gt;mapname&lt;/I&gt;&#034;; fi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;BR&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt;&lt;br class='autobr' /&gt; file, copy the statement that begins &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_master:&lt;/code&gt; to&lt;br class='autobr' /&gt; the space below it. Change &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_master&lt;/code&gt; to &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_&lt;I&gt;mapname&lt;/I&gt;&lt;/code&gt;,&lt;br class='autobr' /&gt; and change both occurrences of &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_master.time&lt;/code&gt; to&lt;br class='autobr' /&gt; &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_&lt;I&gt;mapname&lt;/I&gt;.time&lt;/code&gt;.&lt;BR&gt;&lt;/p&gt;
&lt;TABLE BORDER=0 CELLPADDING=15 CELLSPACING=0&gt; &lt;TR&gt; &lt;TD BGCOLOR=&#034;#337733&#034;&gt; &lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;FONT SIZE=3&gt;&lt;FONT COLOR=&#034;#ffffff&#034;&gt;auto_master:&lt;BR&gt; @if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \&lt;BR&gt; $(YPDBDIR)/$(DOM)/auto_master.time DOM=$(DOM) DIR=$(DIR); \&lt;BR&gt; else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_master.time \&lt;BR&gt; DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi&lt;BR&gt; &lt;BR&gt;auto_&lt;I&gt;mapname&lt;/I&gt;:&lt;BR&gt; @if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \&lt;BR&gt; $(YPDBDIR)/$(DOM)/auto_&lt;I&gt;mapname&lt;/I&gt;.time DOM=$(DOM) DIR=$(DIR); \&lt;BR&gt; else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_&lt;I&gt;mapname&lt;/I&gt;.time \&lt;BR&gt; DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;BR&gt;
&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;make2&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;nopushoptionmake&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;ypxfr&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; Issue the following commands to generate the map :&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;cd /var/yp /usr/ccs/bin/make NOPUSH=1 auto_&lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;&lt;LI&gt;
&lt;p&gt;If you have slave servers configured in your domain, log into&lt;br class='autobr' /&gt; each slave server and issue the following command to copy the new&lt;br class='autobr' /&gt; map to the slave server :&lt;/p&gt;
&lt;pre&gt;/usr/sbin/ypxfr auto_&lt;I&gt;mapname&lt;/I&gt;&lt;/pre&gt;
&lt;/OL&gt;
&lt;p&gt;For more information, see the man page for &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypinit&lt;/code&gt;(1M),&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt;(1), &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypmake&lt;/code&gt;(1M), or &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypxfr&lt;/code&gt;(1M).&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;toremoveanautomountermapfromyournisdomain&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb10980&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadjebd&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Remove an Automounter Map from Your NIS&lt;br class='autobr' /&gt;
Domain &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;nismaps1&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;ypinit1&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;make3&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;mapsnisremoving&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;mapsnisautomounter1&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;automountermapsinnis1&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; Log in as root to the NIS master server.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/usr/sbin/ypinit&lt;/code&gt; script, use a text&lt;br class='autobr' /&gt; editor to remove the map name from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;MASTER_MAPS&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;	list.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;makefilenis1&#034;&gt;&lt;/A&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt;&lt;br class='autobr' /&gt; file, remove the map from the list of maps that begins with &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;all:&lt;/code&gt;.&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;	file, remove the statement that begins&lt;br class='autobr' /&gt; &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;$(YPDBDIR)/$(DOM)/auto_&lt;I&gt;mapname&lt;/I&gt;.time&lt;/code&gt;. For&lt;br class='autobr' /&gt; example, if you were removing the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_home&lt;/code&gt; map, you&lt;br class='autobr' /&gt; would remove the following lines :&lt;BR&gt;&lt;/p&gt;
&lt;TABLE BORDER=0 CELLPADDING=15 CELLSPACING=0&gt; &lt;TR&gt; &lt;TD BGCOLOR=&#034;#337733&#034;&gt; &lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;FONT SIZE=3&gt;&lt;FONT COLOR=&#034;#ffffff&#034;&gt;$ (YPDBDIR)/$(DOM)/auto_home.time: $(DIR)/auto_home&lt;BR&gt; @(sed -e &#034;s/^[ | ]*//g&#034; -e &#034;/^#/d&#034; -e s/#.*$$// &lt;&lt;BR&gt;$(DIR)/auto_home $(CHKPIPE)) |&lt;BR&gt; $(MAKEDBM) - $(YPDBDIR) /$(DOM)/auto_home;&lt;BR&gt; @touch $(YPDBDIR)/$(DOM)/auto_home.time;&lt;BR&gt; @echo &#034;updated auto_home&#034;;&lt;BR&gt; @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto_home; fi&lt;BR&gt; @if [ ! $(NOPUSH) ]; then echo &#034;pushed auto_home&#034;; fi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;BR&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt;&lt;br class='autobr' /&gt; file, remove the statement that begins &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_&lt;I&gt;mapname&lt;/I&gt;:&lt;/code&gt;.&lt;br class='autobr' /&gt; For example, if you were removing the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_home&lt;/code&gt; map,&lt;br class='autobr' /&gt; you would remove the following lines :&lt;BR&gt;&lt;/p&gt;
&lt;TABLE BORDER=0 CELLPADDING=15 CELLSPACING=0&gt; &lt;TR&gt; &lt;TD BGCOLOR=&#034;#337733&#034;&gt; &lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;FONT SIZE=3&gt;&lt;FONT COLOR=&#034;#ffffff&#034;&gt;auto_home:&lt;BR&gt; @if [ $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \&lt;BR&gt; $(YPDBDIR)/$(DOM)/auto_home.time DOM=$(DOM) DIR=$(DIR); \&lt;BR&gt; else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_home.time \&lt;BR&gt; DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;BR&gt;
&lt;LI&gt;
&lt;p&gt;On the master and on each of the slave servers, remove the&lt;br class='autobr' /&gt; map files, &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;mapname&lt;/I&gt;.dir&lt;/code&gt; and &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;mapname&lt;/I&gt;.pag&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;	from the directory where your maps are stored. The directory is&lt;br class='autobr' /&gt; called &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/&lt;I&gt;domainname&lt;/I&gt;&lt;/code&gt;, where &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;domainname&lt;/I&gt;&lt;/code&gt;&lt;br class='autobr' /&gt; is the name of your NIS domain. For example, if you were removing&lt;br class='autobr' /&gt; the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;auto_home&lt;/code&gt; map from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;Finance&lt;/code&gt; domain,&lt;br class='autobr' /&gt; you would issue the following commands on the master server and on&lt;br class='autobr' /&gt; each of the slave servers :&lt;/p&gt;
&lt;pre&gt;cd /var/yp/Finance rm auto_home.dir auto_home.pag&lt;/pre&gt;&lt;/OL&gt;
&lt;p&gt;For more information, see the man pages &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypinit&lt;/code&gt;(1M),&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt;(1), &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypmake&lt;/code&gt;(1M), and &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypfiles&lt;/code&gt;(4).&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;toaddaslaveservertoyournisdomain&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb26597&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadcggb&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Add a Slave Server to Your NIS Domain &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;slaveservernisadding&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;ypservers1&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;makedbm1&#034;&gt;&lt;/A&gt;&lt;/p&gt;
&lt;p&gt;	Log in as root to the NIS master server.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Issue the following command, where &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;domainname&lt;/I&gt;&lt;/code&gt;&lt;br class='autobr' /&gt; is the name of the domain to which you want to add the slave server :&lt;/p&gt;
&lt;pre&gt;cd /var/yp/&lt;I&gt;domainname&lt;/I&gt;&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;Issue the following command to create an editable ASCII text&lt;br class='autobr' /&gt; file from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt; map :&lt;/p&gt;
&lt;pre&gt;/usr/sbin/makedbm -u ypservers &gt; tempfile&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;Use a text editor to add the name of the new server to the&lt;br class='autobr' /&gt; ASCII file, &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;tempfile&lt;/code&gt;.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Issue the following command to regenerate the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt;&lt;br class='autobr' /&gt; map from the ASCII file :&lt;/p&gt;
&lt;pre&gt;/usr/sbin/makedbm tempfile ypservers&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;Log in as root to the new slave server and configure it as an&lt;br class='autobr' /&gt; NIS slave server.&lt;/p&gt;
&lt;/OL&gt;
&lt;p&gt;For more information, see the man page for &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;makedbm&lt;/code&gt;(1M)&lt;br class='autobr' /&gt;
or &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypfiles&lt;/code&gt;(4).&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;toremoveaslaveserverfromyournisdomain&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb36156&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjachcga&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Remove a Slave Server from Your NIS Domain &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;ypservers2&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;makedbm2&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;slaveservernisremoving&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; Log in as root to the NIS master server.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Issue the following commands to create an editable ASCII text&lt;br class='autobr' /&gt; file from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt; map :&lt;/p&gt;
&lt;pre&gt;cd /var/yp/&lt;I&gt;domainname&lt;/I&gt; /usr/sbin/makedbm -u ypservers &gt; tempfile&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;Use a text editor to remove the name of the slave server from&lt;br class='autobr' /&gt; the ASCII file, &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;tempfile&lt;/code&gt;.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Issue the following command to regenerate the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypservers&lt;/code&gt;&lt;br class='autobr' /&gt; map from the ASCII file :&lt;/p&gt;
&lt;pre&gt;/usr/sbin/makedbm tempfile ypservers&lt;/pre&gt;&lt;LI&gt;
&lt;p&gt;Log in as root to the slave server.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Remove all the map files from the map directory, and remove&lt;br class='autobr' /&gt; the map directory. The directory is called &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/&lt;I&gt;domainname&lt;/I&gt;&lt;/code&gt;,&lt;br class='autobr' /&gt; where &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;&lt;I&gt;domainname&lt;/I&gt;&lt;/code&gt; is the name of your NIS domain.&lt;br class='autobr' /&gt; For example, if you were removing a slave server from the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;Finance&lt;/code&gt;&lt;br class='autobr' /&gt; domain, you would issue the following commands :&lt;/p&gt;
&lt;pre&gt;cd /var/yp/Finance rm * cd .. rmdir Finance&lt;/pre&gt;&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;nisslaveservervariable&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;namesvrsfile&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; If the slave is not a slave server in any other NIS domain, use a&lt;br class='autobr' /&gt; text editor to set the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;NIS_SLAVE_SERVER&lt;/code&gt; variable to 0&lt;br class='autobr' /&gt; in the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/rc.config.d/namesvrs&lt;/code&gt; file.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;NIS_SLAVE_SERVER=0&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;nisserverscript1&#034;&gt;&lt;/A&gt;If the slave is not a server&lt;br class='autobr' /&gt; in any other NIS domain, issue the following command to turn off NIS&lt;br class='autobr' /&gt; server capability :&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;/sbin/init.d/nis.server stop&lt;/pre&gt;
&lt;/OL&gt;
&lt;p&gt;For more information, see the man pages &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;makedbm&lt;/code&gt;(1M)&lt;br class='autobr' /&gt;
and &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypfiles&lt;/code&gt;(4).&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;toquerybindforhostinformationafterqueryingnis&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb28240&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadbhbh&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;makedbm3&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;ypmake&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bindwithnis&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;dnswithnis&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;hostsdatabase&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;nisqueryingbind&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;hostsdatabaseusingbind&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Query BIND for Host Information After Querying&lt;br class='autobr' /&gt;
NIS &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;This&lt;br class='autobr' /&gt;
section tells you how to set up &lt;B&gt;server-side hostname fallback&lt;/B&gt;,&lt;br class='autobr' /&gt;
which causes your NIS servers to query BIND for host information&lt;br class='autobr' /&gt;
after querying NIS. A server will search the NIS &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;database first, but if the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt; database does not&lt;br class='autobr' /&gt;
contain the requested information, the server will query the BIND&lt;br class='autobr' /&gt;
name service. The server will return the host information to the&lt;br class='autobr' /&gt;
clients through NIS.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;Configure your NIS servers as BIND name servers, or install&lt;br class='autobr' /&gt; an &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/resolve.conf&lt;/code&gt; file on each server that allows it&lt;br class='autobr' /&gt; to query a BIND name server. for more information.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;On the NIS master server, in the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt;&lt;br class='autobr' /&gt; file, set the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;B&lt;/code&gt; variable to &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;-b&lt;/code&gt;, as&lt;br class='autobr' /&gt; follows :&lt;/p&gt;
&lt;pre&gt;B=-b&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;Issue the following command on the master server to change&lt;br class='autobr' /&gt; the modification time on &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/hosts&lt;/code&gt; so that &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt;&lt;br class='autobr' /&gt; will regenerate the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt; database :&lt;/p&gt;
&lt;pre&gt;/usr/bin/touch /etc/hosts&lt;/pre&gt;&lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;make4&#034;&gt;&lt;/A&gt;Issue the following commands to&lt;br class='autobr' /&gt; regenerate the NIS maps on the master server and push them to the&lt;br class='autobr' /&gt; NIS slave servers :&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;cd /var/yp /usr/ccs/bin/make&lt;/pre&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;etcnsswitchconffileseensswitchconffile&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;nsswitchconffile&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;nameserviceswitch&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;hostnamefallback&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; On all the NIS servers in your domain, change the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;hosts&lt;/code&gt;&lt;br class='autobr' /&gt; line in the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/etc/nsswitch.conf&lt;/code&gt; file to the&lt;br class='autobr' /&gt; following :&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;pre&gt;hosts: nis dns files&lt;/pre&gt;
&lt;/OL&gt;
&lt;p&gt;Hewlett-Packard recommends that you use the Name Service Switch on&lt;br class='autobr' /&gt;
your NIS clients instead of server-side hostname fallback. However,&lt;br class='autobr' /&gt;
if your NIS clients are PCs that do not have a feature like the Name&lt;br class='autobr' /&gt;
Service Switch, use the server-side hostname fallback described in&lt;br class='autobr' /&gt;
this section if you want to force BIND lookups after NIS lookups.&lt;/p&gt;
&lt;p&gt;&lt;A NAME=&#034;touseniswithshortfilenames&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;fb16441&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;bjadfiej&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt;
&lt;B&gt;&lt;FONT SIZE=4&gt;To Use NIS With Short File Names &lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;&lt;/p&gt;
&lt;OL&gt; &lt;LI&gt;
&lt;p&gt;&lt;A NAME=&#034;shortfilenames&#034;&gt;&lt;/A&gt;&lt;A NAME=&#034;niswithshortfilenames&#034;&gt;&lt;/A&gt;&lt;br class='autobr' /&gt; Make sure the first 14 characters of your domain name uniquely&lt;br class='autobr' /&gt; identify your domain among the other NIS domains in your network.&lt;!-- index anchor --&gt;&lt;!-- index anchor --&gt;&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;If you plan to use NIS to manage your automounter maps, keep&lt;br class='autobr' /&gt; the automounter map names to 10 characters or fewer.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;Log in as root to the NIS master server.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt; file, uncomment all the&lt;br class='autobr' /&gt; lines between &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;START OF EXAMPLE&lt;/code&gt; and&lt;/p&gt;
&lt;div class=&#034;precode&#034;&gt;&lt;pre class='spip_code spip_code_block' dir='ltr' style='text-align:left;'&gt;&lt;code&gt;END OF EXAMPLE&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;. (Remove the sharp sign [#] from the beginning of&lt;br class='autobr' /&gt; each line.) Do not uncomment the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;START OF EXAMPLE&lt;/code&gt; and&lt;br class='autobr' /&gt; &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;END OF EXAMPLE&lt;/code&gt; lines.&lt;/p&gt;
&lt;LI&gt;
&lt;p&gt;In the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;/var/yp/Makefile&lt;/code&gt; file, delete everything&lt;br class='autobr' /&gt; after the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;END OF EXAMPLE&lt;/code&gt; line.&lt;/p&gt;
&lt;/OL&gt;
&lt;p&gt;This procedure causes your NIS master server to use HP's&lt;br class='autobr' /&gt;
proprietary &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypmake&lt;/code&gt; script instead of the &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;Makefile&lt;/code&gt;.&lt;br class='autobr' /&gt;
The &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;Makefile&lt;/code&gt; does not support short filenames, but&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;ypmake&lt;/code&gt; does. Type &lt;code class='spip_code spip_code_inline' dir='ltr'&gt;man 1M ypmake&lt;/code&gt; at the&lt;br class='autobr' /&gt;
HP-UX prompt for more information.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>


 
	


 
	

</channel>
</rss>
