NIS server doesn't receive its own passwd entries to nsswitch



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

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • nis, ssh and pam authentication on solaris9
    ... I have a Sun Fire V120 Server running Solaris 9. ... I intend to use this machine as a nis server for our network (at least ... This directory contains the nis passwd file, groups, netgroups, ... Using truss on passwd for both root and a user show that the user ...
    (SunManagers)
  • RE: Nis
    ... > I'm running NIS with freebsd as the server and using redhat clients. ... > and I'm changing the password from the server with passwd -y. ...
    (freebsd-questions)
  • Re: [NIS]: a small problem with NIS
    ... Subject: [NIS]: a small problem with NIS ... > Look you say above the nisserver is 10.172.52.22 ... the ip of the server is not 10.172.52.22 but 10.172.52.39. ... > Trinity University ...
    (Fedora)
  • Re: NIS contingency plan
    ... In case of an emergency (ie. my server goes down.) I want ... | clients to still be able to login. ... | I take it NIS clients don't automatically cache the passwd/group files. ... | user/pass from the passwd file once the server is up again. ...
    (comp.os.linux.networking)
  • Cant change NIS+ password in NIS+ client
    ... I get some trouble about change NIS+ password in NIS+ clinet. ... When I try to change password in NIS+ client, ... NIS+ client -xxx- passwd ... And the more strange thing is passwd works fine in NIS+ server, ...
    (comp.unix.solaris)