Re: 2.6.25.3: su gets stuck for root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Willy Tarreau <w@...>
Cc: Harald Dunkel <harald.dunkel@...>, <linux-kernel@...>, Alan Cox <alan@...>
Date: Monday, June 2, 2008 - 1:55 am

Willy Tarreau wrote:

Just tried this ("kill -CONT <pid>") - no luck.

BTW, it should be possible, I would think, for others to duplicate this
fairly easily.  Just:

1) make a user, "foo", with login shell set to /bin/bash
2) create a .bashrc in foo's home dir with contents:

sleep 2
stty -ixany

3) cp .bashrc .bash_profile  (only needed to test "su - foo" too)
4) become root
5) type "su foo" (or "su - foo")

Sometimes it takes a second try to get it to happen.  If the su hangs,
check to see if the stty process is in state "T".  Also, it may make a
difference if you are logged in already as foo or are using X.  I first
noticed this with no users logged in (except root) and no X running (but
I can reproduce with X/xterm as well using this simple test case).  It
seems timing is a factor, so it's worth trying various things.

					-Joe
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sun Jun 1, 9:31 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Mon Jun 2, 1:12 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 1:42 am)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Mon Jun 2, 1:32 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 4:10 am)
Re: 2.6.25.3: su gets stuck for root, David Newall, (Mon Jun 2, 5:01 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 5:20 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 11:26 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 11:51 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 10:43 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 11:16 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 12:52 pm)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 1:10 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 4:32 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 11, 10:04 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Thu Jun 12, 7:52 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Fri Jun 13, 9:49 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 3:45 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 1:43 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 4:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 4:52 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 5:26 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 5:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 12:03 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:16 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 6:50 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Tue Jun 17, 11:32 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:39 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 6:52 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:57 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 8:28 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 10:31 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 1:55 am)