Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

su - username hangs

Status
Not open for further replies.

Zahier

MIS
Joined
Oct 3, 2002
Messages
97
Location
ZA
Hi Techies,

Does anyone know why this happens? A known bug perhaps?

I'm using ssh to login to my suse 2.6 kernel server as root. That's fine. But any other user using ssh just hangs after putting in the password. Now when I go "su - blah" it hangs. However when I go "su blah" it works. I do a "ps -e f" on another terminal after doing "su - sybase" and see this:

18239 ? Ss 0:00 \_ sshd: root@pts/8
18242 pts/8 Ss 0:00 \_ -bash
18267 pts/8 S 0:00 \_ su - sybase
18268 pts/8 S+ 0:00 \_ -bash

It seems to create a shell, but doesn't return me to a prompt. Any ideas/suggestions?
 
Try to view the user profile such as /etc/profile.

tikual
 
Do a [tt]grep sybase /etc/password[/tt] and see what shell is set for that account. Possible it's some program besides the typical shell (bash, tcsh, whatever). And like tikual said, check the the startup files in sybase' home directory (also listed in /etc/password).

----
JBR
 
Thanks for the tips. I put set -vx in my /etc/profile nad found that it hangs on `hostname -s`. Strange that it only does this for user logins and not root.

So, by commenting this out of /etc/profile, everything seems fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top