Re: 2.6.25.3: su gets stuck for root

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Wednesday, May 14, 2008 - 10:17 am

On Wed, May 14, 2008 at 7:05 PM, Harald Dunkel
<harald.dunkel@t-online.de> wrote:

Looks good. Adding Alan Cox to conversation. Original report:

--------
If I run "su someuser" as root, then it gets stuck. No prompt. I cannot
interrupt it with ^C or ^Z either. /var/log/auth.log says:

May 13 08:06:41 pluto su[4193]: Successful su for root by harri
May 13 08:06:41 pluto su[4193]: + pts/3 harri:root
May 13 08:06:41 pluto su[4193]: pam_unix(su:session): session opened
for user root by harri(uid=1000)

ps shows:

% ps -ef | grep pts/3
harri     4007  4006  0 07:58 pts/3    00:00:00 bash
root      4193  4007  0 08:06 pts/3    00:00:00 su
root      4194  4193  0 08:06 pts/3    00:00:00 bash
root      4209  4194  0 08:08 pts/3    00:00:00 su
root      4210  4209  0 08:08 pts/3    00:00:00 bash
root      4217  4210  0 08:08 pts/3    00:00:00 stty intr ^C

So obviously 'stty' is to blame here (called from root's .bashrc, as
it seems). But for 2.6.24.4 there is no such problem.
--------


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25.3: su gets stuck for root, Harald Dunkel, (Mon May 12, 11:17 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon May 12, 11:47 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Tue May 13, 10:43 am)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Tue May 13, 12:46 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Tue May 13, 9:55 pm)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Tue May 13, 10:46 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Wed May 14, 12:34 am)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Wed May 14, 10:05 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Wed May 14, 10:17 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed May 14, 10:35 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Sun May 18, 10:51 am)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Sun May 18, 10:56 am)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Tue May 20, 12:01 pm)
Re: 2.6.25.3: su gets stuck for root, david, (Tue May 20, 12:12 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Tue May 20, 1:26 pm)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Tue May 20, 1:38 pm)