From owner-freebsd-questions@FreeBSD.ORG Fri Dec 31 13:43:45 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3D61106564A for ; Fri, 31 Dec 2010 13:43:45 +0000 (UTC) (envelope-from florian@wagner-flo.net) Received: from umbracor.wagner-flo.net (umbracor.wagner-flo.net [213.165.81.202]) by mx1.freebsd.org (Postfix) with ESMTP id 66E2E8FC0C for ; Fri, 31 Dec 2010 13:43:45 +0000 (UTC) Received: from naclador.at.local (ppp-188-174-127-77.dynamic.mnet-online.de [188.174.127.77]) by umbracor.wagner-flo.net (Postfix) with ESMTPSA id 330D03C1DA6C for ; Fri, 31 Dec 2010 14:27:53 +0100 (CET) Date: Fri, 31 Dec 2010 14:27:52 +0100 From: Florian Wagner To: freebsd-questions@freebsd.org Message-ID: <20101231142752.1dd0c374@naclador.at.local> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/+kRo0yw7sQNmHiFN0uMiokM"; protocol="application/pgp-signature" Subject: NIS server doesn't receive its own passwd entries to nsswitch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 13:43:45 -0000 --Sig_/+kRo0yw7sQNmHiFN0uMiokM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I've just configured FreeBSD 8.2-RC1 to act as a NIS server and as a client to itself. What works: A Linux client can query NIS. As in ypcat passwd/group and getent passwd/group show the entries from the server. The server can query its on NIS provided groups (ypcat passwd/group). nisserver # ypcat passwd nisuser:*:10000:10000::: nisserver # ypcat group nisgroup:*:10000: What doesn't work: The server doesn't recieve passwd entries to its nsswitch, but does receive group entries. I.e. getent passwd only shows local entries, but getent group shows local and NIS entries. To verify that this is not a problem with getent I also tried: nisserver # touch somefile nisserver # ls -l somefile -rw-r--r-- 1 root wheel 0 Dec 31 14:09 somefile nisserver # chgrp nisgroup somefile nisserver # ls -l somefile -rw-r--r-- 1 root nisgroup 0 Dec 31 14:09 somefile nisserver # chown nisuser somefile chown: nisuser: Invalid argument nisserver # ls -l somefile -rw-r--r-- 1 root nisgroup 0 Dec 31 14:09 somefile I am NOT missing the "+:::::::::" line in master.passwd (as per the handbook entry on NIS clients). I also tried changing "passwd: compat" to "passwd: files nis" in /etc/nsswitch.conf which didn't help at all. Regards Florian Wagner --Sig_/+kRo0yw7sQNmHiFN0uMiokM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0d2lgACgkQLvW/2gp2pPxH5ACdHFhH3s5/XUI+Zj/kleOdhQMV 7jUAnjQaKrYxelx3wVQjwvoFpkSDsR8z =L0B4 -----END PGP SIGNATURE----- --Sig_/+kRo0yw7sQNmHiFN0uMiokM--