FreeBSD 6.x, NIS, local root password, and nsswitch.conf

Gerrit Kühn gerrit at
Wed Nov 22 06:40:12 PST 2006

On Wed, 22 Nov 2006 09:07:34 -0500 (EST) Mark Hennessy <mark at>
wrote about Re: FreeBSD 6.x, NIS, local root password, and nsswitch.conf:

MH> I'm a bit unsure about it myself.
MH> I tried exactly what you suggested, putting files on the compat line
MH> and before nis for both passwd and groups on the NIS slave server
MH> only, and no go.  Perhaps it is the master server that actually
MH> controls this? I don't know.  Any further advice would be greatly
MH> appreciated.

Sorry to disturb, but I don't understand why you distribute the server's
root pw via NIS at all. Is it really shown by "ypcat passwd" on the
client? If so, how about removing it from the list of exported accounts?

The nsswitch.conf I'm using here looks like this:

group:          nis files
hosts:          files nis dns
passwd:         nis files


More information about the freebsd-stable mailing list