[Cc'ed to [EMAIL PROTECTED], so take care if you reply]
On Tue Oct 20 1998 10:23, "Mike Owens" wrote in [EMAIL PROTECTED]:
> Is there a way to choose a runlevel at boot time? For instance, some option
> in LILO.
Of course, to configure it permanently edit /etc/inittab
For quick'n'dirty change of runlevel, at the LILO prompt type in the label
name of (one of) your linux boot config(s) with the runlevel added, eg:
LILO: linux 5
which will boot the config called "linux' at runlevel 5 (or whatever level
you specified). Very handy, works great for one-offs.
You could very easily make some individual config sections in
/etc/lilo.conf with individual ones booting into a different runlevel by
adding this to each image config section:
append="5"
(along with any other append options that you normally use).
Warning: I've never tried this myself, but there's no reason why it
shouldn't work... any options passed to the kernel that it doesn't
understand just get passed through to init (which simply ignores any
options that it doesn't understand).
Actually, this is a good idea and I'll definitely try it so that runlevels
1, 3 or 5 can be chosen just by using simple config names at the LILO
prompt, along with a "message=/boot/message" entry in /etc/lilo.conf to
give a boot message with instructions. Nice.
Getting off the track a bit, but interesting none-the-less...
You can also add a password for the entry for init 1 (single user mode),
along with the "restricted" option. Then chmod 600 /etc/lilo.conf and you
then have box locked down fairly securely.
But you can still get in with a linux boot floppy. However, if you
password the bios and disable floppy disk boots, then it is really starting
to make it difficult to get into the system.
We do this for our department laptops, where many people have access to
them... no way can they get into the machine with root privileges unless
they have (1) the root password, (2) the lilo single user mode password, or
(3) the bios password and a linux boot floppy.
Cheers
Tony