Red Hat Bugzilla – Bug 9803
Last modified: 2014-03-16 22:12:48 EDT
When you start all Red Hat Linux versions with "linux single" or "linux
S" or "linux S" or "linux 1" to boot into a single user mode, you get a
nice root prompt. I used to overcome this security issue, with the
following line in /etc/inittab:
and every time the system entered in single user mode (except runlevel 1,
which I had to put the sulogin as the last command in
/etc/rc.d/init.d/single) it prompted for a root password or <ctrl>-D for a
normal startup. To my surprise, I discovered that pressing a simple
<ctrl>-C in the password prompt of sulogin program, it gives you a root
prompt again! This is an undesirable result and I would suggest to be
fixed as soon as possible.
Thank you very much in advance.
P.S. According to /etc/rc.d/rc.sysinit, sulogin runs after an fsck failure,
which is really no need since a root bash prompt can be obtained so easily.
Fixed in SysVinit-2.78-6 - thanks for the bug report.