LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2005, 06:10 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
NIS problem: user not authenicating on one machine


I added a user to my NIS server, did the "make -C /var/yp" variefied that it works on several machines. On one machine, however, it does not work. Oddly enough, on that machine, the account worked yesterday. Yesterday (or possibly the day before), I chagned the password for that user directly on the NIS server. I've rerun the make command since.. The user can still log in through all other machines, and other NIS users can log into this machine.

If I ypcat passwd.byname, I get the same return on all machines.

I can log into other NIS users on the machine in question, it's just this one account (chow) on this one machine (arsenic) that does not work. Unfortunately, chow sits at arsenic, so I can't just ignore the problem.

/etc/nsswitch.conf is set to look at "files compat" for passwd, shadow and group.

Any ideas?

The NIS server is running RH9
The client machine is running Suse9.3
 
Old 11-11-2005, 07:45 PM   #2
Mad Scientist
Member
 
Registered: May 2003
Posts: 167

Rep: Reputation: 30
On my NIS clients, that portion of the nsswitch.conf file looks like

Code:
passwd:     files nis
shadow:     files nis
group:      files nis
And you're sure this is not a firewall issue, since you've checked the other accounts in the last day to make sure that while "chow" doesn't work, the others do, right? If that's the case, you've really weeded down the number of culprits, and I would spend some time with nsswitch.conf, the passwd file on the server, and the user's home directory.
 
Old 11-11-2005, 08:36 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
After reading your post, I wanted to verify that my nsswitch was actually "nis compat" rather than "files compat" like I typed. It was.

For s4!ts and giggles, I tried logging in as chow. it worked. I logged into another machine & ssh'd in as chow. it worked again.

baffled.

Oh well, if anyone has experienced this before and has an idea what it may be, feel free to chime in. In the mean time, chow is a happy linux user again - for reasons unknown.
 
Old 04-14-2006, 06:29 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
ARGH... Broken again

As luck would have it, the graphics card died on that machine. In my attempts to get the machine up again, I switched distros (something I had been meaning to do anyway). Now, wouldn't you know it, the user chow does not work under the new distro. All other users work - all NIS users, but, for some unknown reason, "chow" does not.

any ideas what might be the problem? I'm guessing it must be something with the user "chow" on the NIS master, but I don't know what I should be looking for... chow uses the same shell, has its home dir in /home/chow (which exists on that machine), and is a member of the same group that the other working users are members.

baffled once again.

FYI: I'm using ubuntu with a 2.6 smp kernel. 2.6.12-10-686-smp to be specific.
 
Old 04-14-2006, 06:37 PM   #5
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
nevermind... got it working. It was looking at the wrong NIS domain
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS User profile Problem tulip4heaven Linux - Networking 0 11-12-2005 01:23 AM
NIS-Problem - search for NIS-Guru or SuSE Profesional krischeu MEPIS 0 06-16-2005 07:21 AM
NIS login problem for Intel 915 machine brranj Linux - Wireless Networking 1 02-16-2005 05:54 AM
how to join NIS server (SUN machine) to Linux NIS server? KoRiR Linux - Networking 3 04-28-2004 01:19 PM
nis client machine can't log in using nis username preetam Linux - Networking 0 02-09-2004 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:10 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