Operating System - HP-UX
1838068 Members
4227 Online
110124 Solutions
New Discussion

cannot su - user successfully after configure NFS as its home diretory

 
rayche
Frequent Advisor

cannot su - user successfully after configure NFS as its home diretory

I configured a NAS space as a user's home directory through NFS,but when I use "su - user" ,I must wait for a long time to get "$", I think NAS configuration is correct, because we configure it as home direcory succefully in another machine. I think maybe there is some problem with the HPUX server.
Could u help me to check ?
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: cannot su - user successfully after configure NFS as its home diretory

Is it doing a quota check?

Where is the users HISTFILE? Is it in the home directory? (This had locking issues over NFS.)
rayche
Frequent Advisor

Re: cannot su - user successfully after configure NFS as its home diretory

yes, there is .sh_history in the home direcory, it is the reason ?
Dennis Handly
Acclaimed Contributor

Re: cannot su - user successfully after configure NFS as its home diretory

It the past, there were problems with the rpc.lockd & rpc.statd running on the server, that would cause ksh hangs when logging in. If you are on 11.11, I would have thought these were long since fixed.

If you can change it to a local filesystem, would that make it work?
rayche
Frequent Advisor

Re: cannot su - user successfully after configure NFS as its home diretory

yes, it is OK when I change the user's home direcory to local file system
Dennis Handly
Acclaimed Contributor

Re: cannot su - user successfully after configure NFS as its home diretory

>it is OK when I change the user's home directory to local file system

Don't change the home directory, just change HISTFILE in his .profile. I.e. export HISTFILE=/tmp/.sh_history_$LOGNAME

If this fixes it, you may want to do a google search on:
site:hp.com ksh hangs on NFS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=995732
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=7558
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960836

The last one seems to be on 11.11.