Bug 173763

Summary: /bin/su doesn't work inside gnome-terminal/xterm.
Product: [Fedora] Fedora Reporter: Rob Andrews <rob>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-02 17:11:02 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 Rob Andrews 2005-11-20 19:40:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051118 Fedora/1.5-0.5.0.rc3 Firefox/1.5

Description of problem:
/bin/su doesn't work from gnome-terminal (or xterm, for that matter). Works okay from a virtual console.

No messages are reported, but strace reveals:

[snip]
read(3, "#%PAM-1.0\nauth     required     "..., 4096) = 154
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f7d000, 4096)                = 0
getuid32()                              = 500
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb7bb98) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "standard in must be a tty\n", 26) = 26
close(1)                                = 0
munmap(0xab1000, 9680)                  = 0
exit_group(1)                           = ?
Process 16114 detached

The 'standard in must be a tty' being the line that gives it away.

Version-Release number of selected component (if applicable):
coreutils-5.93-2

How reproducible:
Always

Steps to Reproduce:
1. Run gnome-terminal/xterm/possibly other terminals
2. Run /bin/su -
3. Wail in despair at the fact that you cannot become root

Actual Results:  Had to wipe the tears a little, but otherwise, nothing.

Expected Results:  Should have prompted for password.

Additional info:

Comment 1 Tim Waugh 2005-11-21 09:50:35 UTC
Works for me.  What does 'tty' say in the same context?

Comment 2 Tim Waugh 2005-12-02 17:11:02 UTC

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