) Interesting . . . the default setup does should not have any prompt for a
) root password for single user mode.
Emmm... actually it does.
) I am interested in seeing your
) /etc/rc.d/init.d/single, /etc/inittab and /etc/rc.d/rc files.
From an RH 6.0 box (although this has been default behavior since
5.1 or 5.2 IIRC):
Last lines of /etc/rc.d/init.d/single
# Now go to the single user level.
echo "Telling INIT to go to single user mode."
exec init -t1 S
from the init man page...
"Runlevel S or s bring the system to single user mode and
do not require an /etc/initttab file. In single user
mode, /sbin/sulogin is invoked on /dev/console."
And lastly from the sulogin man page...
"sulogin is invoked by init(8) when the system goes into
single user mode (this is done through an entry in init-
tab(5)). Init also tries to execute sulogin when it is
passed the -b flag from the bootmonitor (eg, LILO).
The user is prompted
Give root password for system maintenance
(or type Control-D for normal startup):"
) In the case
) you describe the alternative would be to use the init=/bin/bash hack or to
) use a boot floppy to mount the filesystem and change the /etc/passwd
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!