Matt Fuerst wrote:
>
> > Matt Fuerst wrote:
> >
> > > Output of ypmatch 501 passwd.byuid:
> > >
> > > username:scrambledplaintextpassword:501:501::/home/username:/bin/bash
> > >
> > > That all looks legit enough for me.
> > >
> > > What's written in /var/log/secure after the failure:
> > > date/timestamp sshd[4070]: Accepted password for username from
> 192.168.X.X
> > > port 4631 ssh2
> > > date/timestamp sshd[4070]: fatal: login_get_lastlog: Cannot find account
> for
> > > uid 501
> >
> > Very odd. What is the exact Linux distro/version? What do you have in
> > /etc/nsswitch.conf for passwd, group and shadow? Are you by any chance
> > running nscd? This can screw up NIS in odd ways although I havn't seen
> > this particular one.
> >
> > Regards, Ian
>
> Both server and clients are RedHat 9.0 stock installs.
>
> Important parts of /etc/nsswitch.conf (on client):
>
> passwd: files nis
> shadow: files nis
> group: files nis
> hosts: files nis
Looks fine.
> The rest of which is "stock". I just noted that the server actually is set
> to just use files. I don't imagine this being a problem with the clients?
No, there is no need for a NIS server to be a client itself, it can be
of course. Normally it doesn't make a lot of difference. If it is making
the maps from its own real passwd files etc. it will get the same data
either way.
> A: ps aux shows no nscd running, so I assume it's not active.
>
> While searching today I did note that someone said to issue: ypcat
> group.byuid, which does not work on the clients, nor does that file exist in
> /var/yp/domainname. I assumed this was antiquated as the post was from many
> moons ago.
No, just wrong. There has never been any such map in a standard NIS
setup (of course you can create any map you like

The poster probably
meant group.bygid.
> /var/yp/domainname contains:
>
> group.bygid
> group.byname
> hosts.byaddr
> hosts.byname
> passwd.byname
> passwd.byuid
>
> Does that seem right?
Unfortunately yes, it does. I cannot at the moment see any reason why
your setup should not work.
Anyone know if anything is broken in NIS in RH9? I don't have it myself
but have used NIS in many different Linux distros including RH from 5.0
to 8.0 without ever seeing this sort of trouble.
Regards, Ian