Re: 2.6.25.3: su gets stuck for root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joe Peterson <joe@...>
Cc: Alan Cox <alan@...>, Alan Cox <alan@...>, David Newall <davidn@...>, Willy Tarreau <w@...>, Harald Dunkel <harald.dunkel@...>, <linux-kernel@...>
Date: Saturday, June 14, 2008 - 3:45 am

On Sat, Jun 14, 2008 at 3:49 AM, Joe Peterson <joe@skyrush.com> wrote:

[snip]


So this clearly shows what's wrong; 7036 is the "controlling process"
group id. But only "su foo" is in this group, the bash and stty
processes have their own group, 7037.

On my own system, when I do "su", I get this:
 2891  2891  2892 root     su temp
 2892  2892  2892 temp     bash

...and here the "bash" process is in the right group, 2892, while "su"
is the one in the background!

Can you try to run strace on the su to see where things go wrong, i.e.

    $ strace -f -e trace=process su foo

...and we're only interested in what happens up to the point where it
hangs. That should hopefully tell us which process is doing the wrong
thing. In either case, as Alan pointed out, this seems unlikely to be
a kernel problem.

[snip]


Yeah, most likely the process that calls stty is first put in the
background itself (or never brought to the foreground?). But I don't
know why... when you get the trace, we can compare and find out where
it deviates.


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:
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)