diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml index d13f5e9424..5678d9f647 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml @@ -1,7 +1,7 @@ @@ -2028,25 +2028,33 @@ ISDN BRI line lines to /etc/rc.conf, and FreeBSD will do the rest for you. - - + + nisdomainname="test-domain" This line will set the NIS domainname to test-domain upon network setup (e.g. after reboot). - - + + nis_server_enable="YES" This will tell FreeBSD to start up the NIS server processes when the networking is next brought up. - - + + nis_yppasswdd_enable="YES" This will enable the rpc.yppasswdd daemon, which, as mentioned above, will allow users to change their NIS password from a client machine. - - + + + + + Depending on your NIS setup, you may need to add + further entries. See the section about NIS servers + that are also NIS clients, below, for + details. + Now, all you have to do is to run the command /etc/netstart as superuser. It will @@ -2269,8 +2277,8 @@ Don't forget to update map ypservers on ellington. Setting up a FreeBSD machine to be a NIS client is fairly straightforward. - - + + Edit the file /etc/rc.conf and add the following lines in order to set the NIS domainname and start ypbind upon network @@ -2278,13 +2286,14 @@ Don't forget to update map ypservers on ellington. nisdomainname="test-domain" nis_client_enable="YES" - + - + To import all possible password entries from the NIS - server, add this line to your - /etc/master.passwd file, using - vipw: + server, remove all user accounts from your + /etc/master.passwd file and use + vipw to add the following line to + the end of the file: +::::::::: @@ -2297,16 +2306,26 @@ nis_client_enable="YES" For more detailed reading see O'Reilly's book on Managing NFS and NIS. - - + + You should keep at least one local account (i.e. + not imported via NIS) in your + /etc/master.passwd and this + account should also be a member of the group + wheel. If there is something + wrong with NIS, this account can be used to log in + remotely, become root, and fix things. + + + + To import all possible group entries from the NIS server, add this line to your /etc/group file: +:*:: - - + + After completing these steps, you should be able to run ypcat passwd and see the NIS server's @@ -2906,7 +2925,7 @@ TWO (,hotel,test-domain) such servers still in use today. - + NIS Servers that are also NIS Clients Care must be taken when running ypserv in a multi-server @@ -2922,7 +2941,14 @@ TWO (,hotel,test-domain) You can force a host to bind to a particular server by running ypbind with the - flag. + flag. If you do not want to do this manually each time you + reboot your NIS server, you can add the following lines to + your /etc/rc.conf: + + nis_client_enable="YES" # run client stuff as well +nis_client_flags="-S NIS domain,server" + + See &man.ypbind.8; for further information.