Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 2010 14:27:52 +0100
From:      Florian Wagner <florian@wagner-flo.net>
To:        freebsd-questions@freebsd.org
Subject:   NIS server doesn't receive its own passwd entries to nsswitch
Message-ID:  <20101231142752.1dd0c374@naclador.at.local>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101231142752.1dd0c374>