LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-01-2003, 10:44 AM   #1
tells
Member
 
Registered: Jun 2003
Location: Peoria, IL
Distribution: Ubuntu (home) / RHEL (work)
Posts: 65

Rep: Reputation: 15
RedHat AS 3, NIS client authentication problem


I have a NIS client running Red Hat Advanced Server 3. The system is not allowing NIS accounts to login through ssh or gdm. Telnet works. The NIS master is a Red Hat 7.3 system. NIS is not configured to join the password and shadow file together. Has anyone configured a Red Hat Advanced Server NIS client yet? Is anyone seeing the same problem?

/etc/nsswitch.conf from NIS client:
passwd: compat
shadow: files nis
group: compat

last line in /etc/password on NIS client:
+::4294967295:4294967295:::

error message when trying to login with ssh from /var/log/secure:
Dec 1 10:35:45 sal sshd[30857]: Illegal user testuser from 192.168.2.5
Dec 1 10:35:48 sal sshd[30857]: Failed none for illegal user testuser from 192.168.2.5 port 1554
Dec 1 10:35:52 sal sshd[30857]: Failed password for illegal user testuser from 192.168.2.5 port 1554

error message when tyring to login with ssh from /var/log/messages:
Dec 1 10:35:45 sal sshd(pam_unix)[30857]: check pass; user unknown
Dec 1 10:35:45 sal sshd(pam_unix)[30857]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=192.168.2.5

message from /var/log/secure with using telnet:
Dec 1 10:39:24 sal xinetd[585]: START: telnet pid=30861 from=192.168.2.5

message from /var/log/messages with using telnet:
Dec 1 10:39:28 sal login(pam_unix)[30862]: session opened for user testuser by (uid=0)
Dec 1 10:39:28 sal -- testuser[30862]: LOGIN ON pts/3 BY testuser FROM 192.168.2.5
 
Old 12-02-2003, 03:41 PM   #2
tells
Member
 
Registered: Jun 2003
Location: Peoria, IL
Distribution: Ubuntu (home) / RHEL (work)
Posts: 65

Original Poster
Rep: Reputation: 15
I finally fixed the problem. I was not aware that services had to be restarted after NIS had been configured to allow NIS authentication. After restarting sshd and gdm, all the NIS accounts started working.
 
Old 05-28-2004, 01:02 PM   #3
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I was fighting the same problem today. I had made the same
/etc/nsswitch and /etc/passwd changes you note.

I came across the man page for the curses tool authconfig, which
led me to the file /etc/sysconfig/authconfig.

I changed the USENIS directive to yes and restarted the services
(or you can just reboot).

Thought I would post this here for posterity, since I found a
number of posts on the problem when searching google, but no
answers except yours on linuxquestions.org.
 
Old 10-11-2004, 04:51 PM   #4
hearsey
LQ Newbie
 
Registered: Oct 2004
Distribution: AS3 et al
Posts: 3

Rep: Reputation: 0
order of nis servers

Thought I'd throw in... I had the same error, turned out that I had my NIS slave server listed before my NIS master on the client. details details.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 12:43 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 07:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Solaris / OpenSolaris 1 03-31-2004 06:10 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 06:10 AM
NIS client: user authentication failure mahasona Linux - Networking 0 12-05-2003 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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