Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have setup an NIS Server on Red Hat Linux along with a dozen or so clients which are all working fine. Any attempts to login with a nis user from one particular client though, does not work.
From that client
- "ypmatch nisuser passwd" returns a valid result.
- "getent passwd" returns a list of local user and nis users.
However,
- "getent passwd nisuser" does not return anything.
I thought this might be due to a misconfiguration in my /etc/nsswitch.conf file. However, it is identical to other client machines that are working. Contents of the nsswitch.conf are (i've excluded all comments)
Thanks for the response Arch. Without digressing too much, suffice to say I need to get nis working for this client pc.
If i run an authconfig --test between the client that doesn't work and another client on the same kernel, the results are identical.
For this particular implementation of nis I do not believe a + is needed. I could be wrong. However, I'm not sure if the absence of a + would explain why things work on all clients except for one.
I know this is a very old thread, but restarting nscd helped fix the same problem for me! (Yes, I'm maintaining an ancient environment.)
Also, below is to help others searching. Everything worked on both my NIS servers, but not clients. Clients were previously functional before domain was split and renamed.
[client]# su - <nisuser>
su: user <nisuser> does not exist
[client]# id <nisuser>
id: <nisuser>: No such user
[otherhost]> ssh <nisuser>@client
(rejected pw)
/var/log/messages on client contains:
<date> <host> sshd[<pid>]: Invalid user <nisuser> from <otherhost>
<date> <host> sshd[<pid>]: error: PAM: User not known to the underlying authentication module for illegal user <nisuser> from <nis master>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.