Bug 42555

Summary: stty in /etc/bashrc hangs when called from su -
Product: [Retired] Red Hat Linux Reporter: Joerg Dorchain <joerg>
Component: sh-utilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-28 09:19:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joerg Dorchain 2001-05-28 09:19:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.4 i686; Nav)

Description of problem:
The stty command in /etc/bashrc hangs (strace says loops with -ERESTARTSYS)
when doing an su - <user> as root from a vt or a network login (xterm and
gnome-termnial work oddly, as well as stracing with strace -f su - <user>)
as root.

How reproducible:
Always

Steps to Reproduce:
1. Login as root on a console virtual terminal
2. su - <some other user>
3. There you are
	

Actual Results:  nothing directly visible. The process list shows a stty in
T state. Tracing this back leads to the stty in /etc/bashrc.

Expected Results:  Get a login like enviroment for the other user.


Additional info:

Both su and stty are from sh-utils-2.0-13
Kernel is 2.4.4 from kernel.org
glibc is 2.2.2-10

Comment 1 Bernhard Rosenkraenzer 2001-05-28 12:15:38 UTC

*** This bug has been marked as a duplicate of 37615 ***