1826415 Members
3928 Online
109692 Solutions
New Discussion

Re: ksh & sh

 
Danny Crisp
Frequent Advisor

ksh & sh

I have an issue with any user that logs in using either ksh or sh. For example, if i were to telnet to this particular workstation using a uid that utilizes ksh or sh, I have to wait up ten minutes before a get a prompt. If i login using csh the prompt appears instantly. But, then when i type ksh or sh i have to wait ages for a prompt.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: ksh & sh

By any chance, are your home directories NFS mounted?


Pete

Pete
Tom Danzig
Honored Contributor

Re: ksh & sh

Since both ksh and sh source the users .profile and csh does not, there is most likely some code in it that is causing the delay. Could be a name resolution delay which is quite common in slow logins.
Peter Godron
Honored Contributor

Re: ksh & sh

Danny,
different login scripts ?
Danny Crisp
Frequent Advisor

Re: ksh & sh

Pete R, yes, they are NFS mounted.
Pete Randall
Outstanding Contributor

Re: ksh & sh

In that case, it's most likely the history file that is causing the delay. Try inserting this in your /etc/profile to make the history file local:

HISTFILE=/tmp/.sh_history.$(whoami)
export HISTFILE


Pete

Pete
Pete Randall
Outstanding Contributor

Re: ksh & sh

Oh, and double check that HISTFILE is won't get over-ridden in .profile. If it's being set in .profile, make the suggested change there instead.


Pete

Pete