Date: Tue, 9 Aug 2005 14:02:53 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Jeremy Utley <lfsjeremy@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: NIS problems on FreeBSD 5.4 Message-ID: <20050809190252.GA71687@dan.emsphone.com> In-Reply-To: <3aaec884050809113868af985@mail.gmail.com> References: <3aaec88405080816514a40f327@mail.gmail.com> <20050809010301.GA37912@dan.emsphone.com> <3aaec884050809113868af985@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 09), Jeremy Utley said: > On 8/8/05, Dan Nelson <dnelson@allantgroup.com> wrote: > > In the last episode (Aug 08), Jeremy Utley said: > > > I'm trying to use FreeBSD 5.4 as an NIS client, and am > > > encountering problems. I've followed the instructions given in > > > the FreeBSD docs ( > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nis.html > > > ) successfully, but the system does not recognize my NIS users. > > > > You need either a plus line in your master.passwd file (best way to add > > it is to use the vipw command): > > > > +::::::::: > > This part has already been done - it was part of the docs I followed > from the FreeBSD site. > > > Or you need this in /etc/nsswitch.conf: > > > > passwd: files nis > > Haven't done this...the passwd section of my current nsswitch.conf is: > > passwd: compat > passwd_compat: nis > > Adding this to nsswitch.conf seems to have resolved the problem - > perhaps doing so should be added to the docs. Only one is necessary. You can remove the plus line from master.passwd if you're using the "passwd: files nis" line. With "passwd: compat", the NIS tables are consulted whenever there's a + or - line in master.passwd and netgroups are used. With "passwd: files nis", nis is checked if the user isn't in the local passwd file, and you can't use netgroups. Also remember to change the "group:" line in nsswitch.conf to match, and remove the + line from /etc/groups. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050809190252.GA71687>