System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

nis unable to login from the nis client

SOLVED
Go to solution
Adithyan
Frequent Advisor

nis unable to login from the nis client

Hi friends,

I have a NIS server where I have exported my /home in rw mode to the NIS client. all the services are running for both server and client through automount I can see the /home in my NIS client. All the required daemons are running in both the nodes.

NIS server:
[root@testnode1 nisusers]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
100004 2 udp 662 ypserv
100004 1 udp 662 ypserv
100004 2 tcp 665 ypserv
100004 1 tcp 665 ypserv
600100069 1 udp 672 fypxfrd
600100069 1 tcp 674 fypxfrd
100007 2 udp 685 ypbind
100007 1 udp 685 ypbind
100007 2 tcp 688 ypbind
100007 1 tcp 688 ypbind
100009 1 udp 991 yppasswdd
100011 1 udp 609 rquotad
100011 2 udp 609 rquotad
100011 1 tcp 612 rquotad
100011 2 tcp 612 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32779 nlockmgr
100021 3 udp 32779 nlockmgr
100021 4 udp 32779 nlockmgr
100021 1 tcp 32775 nlockmgr
100021 3 tcp 32775 nlockmgr
100021 4 tcp 32775 nlockmgr
100005 1 udp 625 mountd
100005 1 tcp 628 mountd
100005 2 udp 625 mountd
100005 2 tcp 628 mountd
100005 3 udp 625 mountd
100005 3 tcp 628 mountd
NIS client:
[root@testnode2 init.d]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
100021 1 udp 32769 nlockmgr
100021 3 udp 32769 nlockmgr
100021 4 udp 32769 nlockmgr
100021 1 tcp 32772 nlockmgr
100021 3 tcp 32772 nlockmgr
100021 4 tcp 32772 nlockmgr
100007 2 udp 644 ypbind
100007 1 udp 644 ypbind
100007 2 tcp 647 ypbind
But when I am trying to login from the NIS client its giving me access denied:

login as: test1
test1@testnode2's password:
Access denied
test1@testnode2's password:

Where test1 is the user created in NIS server.

I am able to change the password for the nis server :

[root@testnode2 init.d]# yppasswd test1
Changing NIS account information for test1 on testnode1.
Please enter root password:
Changing NIS password for test1 on testnode1.
Please enter new password:
Please retype new password:

The NIS password has been changed on testnode1.
Pls let me know whats wrong?

Thanks.
Keen to learn HP UX
2 REPLIES
Steven E. Protter
Exalted Contributor

Re: nis unable to login from the nis client

Shalom,

Check /var/adm/syslog/syslog.log on both systems.

See if the configuration files are compatible or if some firewall is blocking the needed ports.

what does ypmake on the master do?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MonitKapoor
Occasional Visitor
Solution

Re: nis unable to login from the nis client

You could try a couple of things:
- Check to see if the user has a login shell available to him
i.e. # getent passwd test1

- Restarting nscd (if running) might help on some older versions

- Check log messages for errors, could be a pam issue