Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml
Show First 20 Lines • Show All 1,269 Lines • ▼ Show 20 Lines | &prompt.root; <userinput>service autounmountd start</userinput></screen> | ||||
<secondary>server configuration</secondary> | <secondary>server configuration</secondary> | ||||
</indexterm> | </indexterm> | ||||
<para>Setting up a master <acronym>NIS</acronym> server can be | <para>Setting up a master <acronym>NIS</acronym> server can be | ||||
relatively straight forward, depending on environmental needs. | relatively straight forward, depending on environmental needs. | ||||
Since &os; provides built-in <acronym>NIS</acronym> support, | Since &os; provides built-in <acronym>NIS</acronym> support, | ||||
it only needs to be enabled by adding the following lines to | it only needs to be enabled by adding the following lines to | ||||
<filename>/etc/rc.conf</filename>:</para> | <filename>/etc/rc.conf</filename>:</para> | ||||
<programlisting>nisdomainname="test-domain" <co xml:id="network-nis-co-domainname" /> | <programlisting>nisdomainname="<replaceable>test-domain</replaceable>" <co xml:id="network-nis-co-domainname" /> | ||||
nis_server_enable="YES" <co xml:id="network-nis-co-server" /> | nis_server_enable="YES" <co xml:id="network-nis-co-server" /> | ||||
nis_yppasswdd_enable="YES" <co xml:id="network-nis-co-yppasswdd" /></programlisting> | nis_yppasswdd_enable="YES" <co xml:id="network-nis-co-yppasswdd" /></programlisting> | ||||
<calloutlist> | <calloutlist> | ||||
<callout arearefs="network-nis-co-domainname"> | <callout arearefs="network-nis-co-domainname"> | ||||
<para>This line sets the <acronym>NIS</acronym> domain name | <para>This line sets the <acronym>NIS</acronym> domain name | ||||
to <literal>test-domain</literal>.</para> | to <literal>test-domain</literal>.</para> | ||||
</callout> | </callout> | ||||
Show All 22 Lines | nis_yppasswdd_enable="YES" <co xml:id="network-nis-co-yppasswdd" /></programlisting> | ||||
involved can be considerable and the failure mode is still | involved can be considerable and the failure mode is still | ||||
present since the servers might bind to each other all over | present since the servers might bind to each other all over | ||||
again.</para> | again.</para> | ||||
<para>A server that is also a client can be forced to bind to a | <para>A server that is also a client can be forced to bind to a | ||||
particular server by adding these additional lines to | particular server by adding these additional lines to | ||||
<filename>/etc/rc.conf</filename>:</para> | <filename>/etc/rc.conf</filename>:</para> | ||||
<programlisting>nis_client_enable="YES" # run client stuff as well | <programlisting>nis_client_enable="YES" <co xml:id="network-nis-co-client" /> | ||||
nis_client_flags="-S <replaceable>NIS domain</replaceable>,<replaceable>server</replaceable>"</programlisting> | nis_client_flags="-S <replaceable>test-domain</replaceable>,<replaceable>server</replaceable>" <co xml:id="network-nis-co-clientflags" /></programlisting> | ||||
<calloutlist> | |||||
<callout arearefs="network-nis-co-client"> | |||||
<para>This enables running client stuff as well.</para> | |||||
</callout> | |||||
<callout arearefs="network-nis-co-clientflags"> | |||||
<para>This line sets the <acronym>NIS</acronym> domain name | |||||
to <literal>test-domain</literal> and bind to itself.</para> | |||||
</callout> | |||||
</calloutlist> | |||||
<para>After saving the edits, type | <para>After saving the edits, type | ||||
<command>/etc/netstart</command> to restart the network and | <command>/etc/netstart</command> to restart the network and | ||||
apply the values defined in <filename>/etc/rc.conf</filename>. | apply the values defined in <filename>/etc/rc.conf</filename>. | ||||
Before initializing the <acronym>NIS</acronym> maps, start | Before initializing the <acronym>NIS</acronym> maps, start | ||||
&man.ypserv.8;:</para> | &man.ypserv.8;:</para> | ||||
<screen>&prompt.root; <userinput>service ypserv start</userinput></screen> | <screen>&prompt.root; <userinput>service ypserv start</userinput></screen> | ||||
▲ Show 20 Lines • Show All 3,387 Lines • Show Last 20 Lines |