In the rare cases that a RHEL or CentOS 6 system is prevented from booting by (for instance) an improper shutdown, or a forced fsck-check failure on boot, the console will prompt the user for a root password.
How do I disable the password check and drop directly to a root-shell?
Unacceptable answers:
- overriding
init
on kernel command line (ie, grub) - linking / replacing /sbin/sulogin with /sbin/sushell. (This would work, but it would raise red flags with the security framework).
- booting from some other device
rcS-emergency
, and addingEMERGENCY=/bin/sushell
to/etc/sysconfig/init
will make it run sushell. I don't know if this covers every conceivable fault that rc stuff can run into, though. – Mark Plotnick Jul 21 '15 at 19:30