Date: Wed, 22 Nov 2006 21:51:14 +0800 (WST) From: David Adam <zanchey@ucc.gu.uwa.edu.au> To: Mark Hennessy <mark@cloud9.net> Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 6.x, NIS, local root password, and nsswitch.conf Message-ID: <Pine.LNX.4.58.0611222028280.14631@mussel.ucc.gu.uwa.edu.au> In-Reply-To: <Pine.BSF.4.64.0611211220200.81287@earl-grey.cloud9.net> References: <Pine.BSF.4.64.0611211220200.81287@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 21 Nov 2006, Mark Hennessy wrote: > I have a new system that has FreeBSD 6.1 on it to replace a system with > FreeBSD 4.11 being put out of service. > > I want to keep to using local root passwords only, but export other users' > logins over NIS. It acts presently as an NIS slave server. > > The NIS master server was upgraded a few months ago to FreeBSD 6.0 and > then 6.1. > > All other machines are running FreeBSD 4.11. > > A weird thing started to happen with the new machine. Only on this new > machine, the local root password doesn't work and only the root password > of the NIS master server will work to attain root. Perhaps something > needs to be changed somewhere to make the local root password work again? > > Here's the /etc/nsswitch.conf from the master server: > group: compat > group_compat: nis > hosts: files dns > networks: files > passwd: compat > passwd_compat: nis > shells: files > > Here's the /etc/nsswitch.conf from the slave server: > group: compat > group_compat: nis > hosts: files dns > networks: files > passwd: compat > passwd_compat: nis > shells: files > > They both appear to be set to defaults. > > I tried changing group and passwd to include 'files', I also tried > changing group_compat and passwd_compat to include 'files', but no > positive change. Mark, Careful here. The line needs to read 'files nis', not 'nis files' - if you used the latter, try switching it around so that the local /etc/passwd is checked for root logins before NIS is consulted. As I understand the man page, you want to change the {group,passwd}_compat lines, not the {group,passwd} lines themselves. > I couldn't find nsswitch.conf on any of the FreeBSD 4.11 servers. They > are served by NIS as clients and all of their local root passwords work > fine. >From nsswitch.conf(5): "The nsswitch.conf file format first appeared in FreeBSD 5.0. It was imported from the NetBSD Project, where it appeared first in NetBSD 1.4." The NIS section of the handbook contains no mention of nsswitch.conf(5), so I'm not actually sure that it's required for system authentication. David Adam zanchey@ucc.gu.uwa.edu.au
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.58.0611222028280.14631>