Red Hat Bugzilla – Bug 15755
ctrl-C does not work in runlevel s
Last modified: 2008-05-01 11:37:57 EDT
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
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
This appears to be a problem with shell startup after switching to single user
How are you getting to single user mode? What's needed is to set ^C in the
used by the shell that's run when you end up in single user mode.
Adding the line "stty intr ^C" in /root/.bashrc does not help.
However, a long time ago the following customisation has been made to
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?
The problem is still present in RH7.0 with the same customisation. Will you have
a look at this problem again please?
I can't reproduce this with the current version (from rawhide).