Subject: Re: NIS / YP configuration
To: None <netbsd-users@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 10/31/2001 13:17:18
In article <1004532867.3bdff48386479@demo.horde.org>,
chris@dejection.org.uk writes:
> Has anyone got any information on configuring NIS/YP (both server and
> client) in NetBSD with decent examples?
Use "domainname mynisdomain" and "ypinit -m" to setup a master server.
Put these entries into "/etc/rc.conf":
domainname=mynisdomain
ypbind=YES
ypserv=YES
yppasswdd=YES
Change your "/etc/nsswitch.conf" to actually use NIS. It could look like
this:
group: nis [notfound=return] files
hosts: files dns
netgroup: files nis
networks: files
passwd: nis [notfound=return] files
shells: files
Now reboot the new master server to activate NIS all over the place.
Use "domainname mynisdomain" and "ypinit -c" on the client. After activating
NIS there add this to "/etc/rc.conf":
domainname=mynisdomain
ypbind=YES
Change "/etc/nsswitch.conf" as described above and reboot the client.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/