1834172 Members
2718 Online
110064 Solutions
New Discussion

Login problem

 
SOLVED
Go to solution
Helen French
Honored Contributor

Login problem

Hi,

May be a simple issue: I have a user right now trying to login to the serever ( hp-ux 10.20 ) and couldn't get a prompt. It just hangs before getting the prompt. The home directory of the user is an automount NFS directory. I can see this user with a 'who' command. But I cannot kill the 'sh' process. The bdf shows the home directory is mounted and I can even see the content of his home directory

Any idea ..???

Thanks!
Shiju
Life is a promise, fulfill it!
13 REPLIES 13
harry d brown jr
Honored Contributor

Re: Login problem

Shiju,

You've seen the drill:

Do you have the latest patches installed?

live free or die
harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: Login problem

Hi Shiju,


Edit his/her .profile and point the HISTFILE to somewherelse other than his/her home directory itself and see if it helps.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor

Re: Login problem

I assume you've checked permissions on /home and on their home directory and all files in their home directory?
Helen French
Honored Contributor

Re: Login problem

Hi,

Harry, the patch level is fine. There are other users which uses this same routine for logging in and works fine. Any individual patches to check up?

Sri, I tried moving the .profile itself and didn't help.

Is there any way to kill the processes ?

Shiju

Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: Login problem

Patrick - the permissions are okay !

Shiju
Life is a promise, fulfill it!
harry d brown jr
Honored Contributor

Re: Login problem

Shiju,

How about these patches:

PHNE_25234
PHNE_15159

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Login problem

Shiju,

As Sri suggest, have you tried moving the HISTFILE to a non-automounted directory?

live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: Login problem

Hi Shiju,

What is the user shell. Is he using ksh ?.

Regds
Helen French
Honored Contributor

Re: Login problem

Sanjay - the shell is /bin/sh

Harry - the patch 25234 is not installed. I will try that.

Also, there is no HISTFILE in the user's home directory. I even moved the .profile file !

This is an NIS user.

Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor
Solution

Re: Login problem

Maybe an NFS file locking issue. The symptom has happened to me a few time.
Try this on the client end.

1) Kill rpc.lockd and rpc.statd:
# kill -9 `ps -ef|grep rpc.lockd|grep -v grep|awk '{print $2}'`
# kill -9 `ps -ef|grep rpc.statd|grep -v grep|awk '{print $2}'`

2) Delete all files in /var/statmon:
# rm -R /var/statmon/sm.bak
# rm -R /var/statmon/state.bak
# mv /var/statmon/sm /var/statmon/sm.bak
# mv /var/statmon/state /var/statmon/state.bak

3)Restart rpc.statd and rpc.lockd:
# /usr/sbin/rpc.statd
# /usr/sbin/rpc.lockd

Helen French
Honored Contributor

Re: Login problem

Chan,

That was great ! It worked. The user is able to login now.

But i notified the old logins are still listing in 'who' command, but not in 'ps -aef' command ! any idea why ?

Thanks for ur help !

Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: Login problem

I'm glad it worked ! If you see UID in who but not in ps, I would think /etc/utmp is corrupted because "who" gets it info from that file. I'm not sure how to fix this inconsistence. Maybe what you can do is save a copy of that file then just emptied the original /etc/utmp file and reboot the system. Again I'm NOT SURE...
Helen French
Honored Contributor

Re: Login problem

Hi Chan,

Thanks! I will take care about that ..

Shiju
Life is a promise, fulfill it!