LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2010, 11:35 PM   #1
garth.mclaughlin
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
NIS problem logging in from client pc


Hello,

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)

passwd: files nis
shadow: files nis
group: files nis
hosts: files dns nis
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files
publickey: files
automount: files
aliases: files

I'm stuck! Any help would be greatly appreciated!

Cheers,
Garth

Last edited by garth.mclaughlin; 08-04-2010 at 11:37 PM. Reason: Typo
 
Old 08-05-2010, 02:00 PM   #2
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
Hate to have to say this (since this is 2010) - but use LDAP and ditch NIS.

But if you're determined to use NIS, check you're passwd file - don't you need like a + entry or something at the end there?

Can you provide output from "authconfig --test" - or better yet check this between a working and the broken client and show any differences?

Sorry if I'm a little fuzzy, it's been a long time since I've managed a NIS server (just to rub it in there - I can't help it :P).

- Arch
 
Old 08-05-2010, 05:59 PM   #3
garth.mclaughlin
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.

- Garth
 
Old 08-06-2010, 08:56 AM   #4
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
Quote:
Originally Posted by garth.mclaughlin View Post
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.
getent passwd | grep nisuser shows the nis user whereas getent passwd nisuser doesn't?

Other tools (`id`) on nisuser also fail?

Um, are you running nscd and does behaviour change if you stop it?

Not sure what else to suggest... Usually if getent passwd is good, nsswitch and everything else is fine.

- Arch
 
Old 08-08-2010, 05:30 PM   #5
garth.mclaughlin
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Arch,

thats right. "getent passwd | grep nisuser" returns the username in question. "getent passwd nisuser" doesnt.

id nisuser returns "no such user"

the good news is, after restarting nscd, everything now works as expected. I am assuming the restart cleared the daemons cache.

Thanks for the tip, much appreciated!

- Garth
 
Old 07-13-2018, 03:59 PM   #6
denforth
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
Thumbs up [FIXED]

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

[client]# yptest -u <nisuser>
(works)

[client]# ypcat passwd | grep <nisuser>
(valid results)

[client]# getent passwd <nisuser>
(no results)

[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>
 
  


Reply

Tags
nis



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS failed for one user on one NIS client - strange problem resolved catbird Linux - Networking 1 10-05-2009 11:00 AM
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Server 2 07-23-2009 08:44 PM
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Networking 1 07-13-2009 05:51 AM
problem in mounting /home when logging through NIS vaibhava303 Linux - Networking 1 09-17-2003 09:07 AM
problem logging in local users - nis,nfs synfield Linux - Networking 3 04-05-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration