> > I normally run slackware linux, and "boot: single" or "init 1" will drop
> > to a login prompt.
> > I have noticed that this does not happen with redhat, you get the bash
> > prompt without having to login as root.
> > Is there an easy way to make redhat present a login prompt when going to
> > single user?
> > I have been tracing through the (never-ending redhat) script files and
> > can not find an answer.
> > Any hints will be received gratefully.
> > tia,
> To my understanding, this is because RH uses sysV init, with actual
> and Slackware uses the BSD init, with /etc/rc.d scripts.
> You can look in there. Also, as someone previously stated, this can (I
> think), be
> set in lilo
Yup. An example /etc/lilo.conf off a stock RH 7.0 install, with the
password set in the global section:
All the versions of lilo() I've used complain about permissions if you
don't set lilo.conf's mode to 600 (or 660 if owned root:root I guess) b/c
the password's in the file in clear text. Makes sense t'me.
You can also drop the "restricted" and "password=" option-pair into each
image's section. I'm guessing that it'd prompt for password when trying
to boot that particular image (into any runlevel?), but I've never done
that so I can't comment.