Could not login to RedHat NIS client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I setup a redhat Linux 9 NIS client with existing NIS+/NIS environment. The
NIS server is actually Solaris NIS+ server which runs in NIS emulation mode.

I modifed /etc/nsswitch.conf as below,

--
passwd: files nis
shadow: files nis
group:  files nis
---

modifed /etc/pam.d/login as below

----
#%PAM-1.0
auth       required     pam_securetty.so
#auth       required    pam_stack.so service=system-auth
auth       required     pam_unix.so  nullok
auth       required     pam_nologin.so
#account    required    pam_stack.so service=system-auth
account    required     pam_unix.so debug
#password   required    pam_stack.so service=system-auth
password   required     pam_unix.so nullok
#session    required    pam_stack.so service=system-auth
session    required     pam_unix.so debug
session    optional     pam_console.so
--------

Then I start /etc/init.d/ypbind, it shows no error meesage and bind to my
NIS server.

But when I tried to login as a user whose name is in the NIS table, error
messages shown in /var/log/messages

----
Oct  7 11:19:29 myhost rlogin(pam_unix)[2759]: authentication failure;
logname=
 uid=0 euid=0 tty=rlogin ruser=root rhost=linux  user=myusername
Oct  7 11:19:32 myhost in.rlogind[2759]: PAM authentication failed for
in.rlogi
nd
Oct  7 11:19:35 myhost login(pam_unix)[2760]: authentication failure;
logname=
uid=0 euid=0 tty=pts/1 ruser= rhost=linux  user=myusername
Oct  7 11:19:37 myhost login[2760]: FAILED LOGIN 1 FROM linux FOR
myusernaem, Authe
ntication failure
----

I checked NIS setup with ypcat, ypmatch. They are working file.

The output of "ypmatch myusername passwd" is,

---
myusername:*NP*:1532:1000:My User:/home/myusername:/bin/csh
----

And I setup autofs to use the information from NIS too, autofs is working
fine.

So probably the only problem is in /etc/pam.d/login (this file worked fine
for NIS+ client, I had ever setup this linux box as a NIS+ too, and now NIS+
client is removed).

I already read NIS howto carefully and followed the instructions. Anyone can
give ma a hand?

Thanks in advance.

Jeremy




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux