Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
cancel
Showing results for 
Search instead for 
Did you mean: 

login issues on nis client.

SOLVED
Go to solution
KiddA
Advisor

login issues on nis client.

Hi everyone... I'm facing a strange issue when trying to login to this server which is a nis client.

Actually I'm being able to login but don't get prompt ... if I repeatedly hit ctrl+c several times then I get it.

I tried creating a local user and works just fine.
I was thinking on a profile issue?

I have the nis master and two clients, all running hpux 11iv1. Issue only happens on one client.
All are in the same subnet.
I restarted nis client without success.

nsswitch.conf file:

#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#

passwd: files [NOTFOUND=continue] nis
group: files [NOTFOUND=continue] nis
hosts: files [NOTFOUND=continue]dns [NOTFOUND=continue] nis [NOTFOUND=continue]
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: files
automount: files [NOTFOUND=continue] nis
aliases: files nis
services: files nis

Please tell me if more info is required.
Thanks all for the time&help!
6 REPLIES
ankitj1983
Frequent Advisor
Solution

Re: login issues on nis client.

Hello,

Kindy check auto.master & auto.misc entries.

Regards

Ankit
ankitj1983
Frequent Advisor

Re: login issues on nis client.

Compare the NFS version the machine you are facing the issue,other clients & server.

Check the portmap daemon is up.

Dennis Handly
Acclaimed Contributor

Re: login issues on nis client.

>if I repeatedly hit ctrl+C several times then I get it.
>I was thinking on a profile issue?

Possibly or a history file over NFS. Add "set -x" to your .profile and see how far it gets.
nightwich
Valued Contributor

Re: login issues on nis client.

Hi KiddA



Check the syslog what error do you get when you try to login.


Do you use automount ??

If yes also restart the daemon, and see what happens.

If you have any problem reply.

Regards
Viktor Balogh
Honored Contributor

Re: login issues on nis client.

Hi,

It might be a problem related to a ksh bug. If your Home is on NFS ksh cannot lock the history file. Try to set the HISTFILE to a local filesystem and see what happens:

Give this line to the end of your .profile:

export HISTFILE=/tmp/.histfile_$LOGNAME

See this thread also:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1284995104760+28353475&threadId=1105150

Regards,
Viktor
****
Unix operates with beer.
KiddA
Advisor

Re: login issues on nis client.

Thanks for the help guys!

I had to umount nfs mounts and restart nfs client/server on both servers, after that, I was able to log in as usual again.

Before restarting nis daemons, bdf output showed a nfs stale file handle on the server that is exporting the homes.

"bdf: /home/montools: Stale NFS file handle"

So that might be the reason why i was having a delay in the log in ...

I've assigned points, will close this thread uppon end user confirmation.

Thanks all for the time&help!