Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 10:19:12 +0100
From:      Thomas <freebsdlists@bsdunix.ch>
To:        freebsd-questions@freebsd.org
Subject:   NIS table and the local passwd are out of sync
Message-ID:  <4D301510.5010100@bsdunix.ch>

next in thread | raw e-mail | index | archive | help
Hello

I hope someone can give me some hints on how to fix a NIS problem. My
FreeBSD 7.2 (amd64) system works as NIS Server and a 8.1-STABLE (amd64)
machine as a NIS client. It was configured as described at
http://www.freebsd.org/doc/handbook/network-nis.html. Syncing between
server and client works but there is a difference between NIS and the
local administrative database (passwd). ypcat and ypmatch show more
users than getent.

Example:
"ypmatch wwwfoo passwd"
wwwfoo:*:46683:46683:WebAccount:/var/webs/foo.com:/bin/date

"getent passwd | grep wwwfoo" returns nothing

This is an issue since my apache doesn't work if all these users are not
seen with getent. Any idea why all my users are in the nis table but are
not seen by the system? Nscd is not running so it shouldn't be a cache
issue.

NIS client master.passwd:
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
+:*:::::

nsswitch.conf:
group: files nis
group_compat: nis
passwd: files nis
passwd_compat: nis

Regards,
Thomas



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