Bug 21862

Summary: /sbin/sulogin accepts regular files as ttys
Product: [Retired] Red Hat Linux Reporter: jdalbec
Component: SysVinitAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Dale Lovelace <dale>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dr, rvokal
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: 2000-12-07 11:57:46 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 jdalbec 2000-12-07 00:15:45 UTC
#touch tmp
#sulogin tmp
#cat tmp
Give root password for maintenance
(or type Control-D for normal startup):
#

I ran into this issue when a buggy sulogin replacement (don't ask) executed
the command:
/sbin/sulogin /sbin/shutdown -h now 'REMOTE SHUTDOWN REQUESTED'
This corrupted the 'shutdown' executable to the point where it ran, but
gave strange error messages with pieces of the text of the sulogin prompt.

Comment 1 Bill Nottingham 2001-01-31 21:30:56 UTC
Will be fixed in SysVinit-2.78-11. Thanks!