1834639 Members
2746 Online
110069 Solutions
New Discussion

Re: user login hangs

 
SOLVED
Go to solution
simon_164
Super Advisor

user login hangs

Whenever i am using the user root and i switch to another user let's say prdadm, it hangs.
su - prdadm

then it hangs on TERM=(hp)

It will not switch the user unless i press enter.

Why is that? any idea how to fix it?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: user login hangs

Shalom,

Try another TERM

TERM=hp generally only works with consoles. Try vt100 or vt220

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
rariasn
Honored Contributor
Solution

Re: user login hangs

Hi simon,


# export TERM=hpterm

Verify /etc/profile file,

Sample,

grep "read" /etc/profile"

rgs,

ran
Darren Prior
Honored Contributor

Re: user login hangs

Hi Simon,

Have a look at the user's .profile - it will have some scripting around the tset command which asks the user which TERM they wish to use.

You could always hardcode the TERM variable in the .profile instead.

regards,

Darren.
Calm down. It's only ones and zeros...
Victor Fridyev
Honored Contributor

Re: user login hangs

Hi,

You have in the users' .profile command called tset in the format which requires user's input.
Try to find and exclude it from there .

HTH
Entities are not to be multiplied beyond necessity - RTFM
simon_164
Super Advisor

Re: user login hangs

The problem was with the .login file, it has a eval tset value without checking the TERM. I have removed this line and it works. the value for the TERM is setup in the .profile file.

Thanks a lot !!