Bug 15755

Summary: ctrl-C does not work in runlevel s
Product: [Retired] Red Hat Linux Reporter: Rene Uittenbogaard <ruittenbogaard>
Component: sh-utilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
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: 2001-02-19 14:58:05 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 Rene Uittenbogaard 2000-08-08 19:08:04 UTC
When the system is brought down to single-user mode, the only working
virtual console does not allow any command to be ended by control-C. The
following settings have been set:

speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

Comment 1 Jeff Johnson 2001-01-06 19:37:06 UTC
This appears to be a problem with shell startup after switching to single user
mode.

How are you getting to single user mode? What's needed is to set ^C in the
profile
used by the shell that's run when you end up in single user mode.

Comment 2 Rene Uittenbogaard 2001-01-08 12:22:50 UTC
Adding the line "stty intr ^C" in /root/.bashrc does not help.
However, a long time ago the following customisation has been made to
/etc/inittab:

ss:S:once:/sbin/sulogin

removing / commenting out this line solves the problem.  However, as a security
measure, I don't want to remove it. Also, in /etc/rc.sysinit, sulogin is used,
which means ctrl-C cannot be used in an emergency shell. Is it possible to
consider this bugreport as a bug in sulogin?


Comment 3 Rene Uittenbogaard 2001-02-19 14:55:23 UTC
The problem is still present in RH7.0 with the same customisation. Will you have
a look at this problem again please?


Comment 4 Bernhard Rosenkraenzer 2001-03-06 15:17:17 UTC
I can't reproduce this with the current version (from rawhide).