The solution provided by Yunus is not entirely correct and a user other
than root can still go to single user mode by an init 1.
By removing prompt in lilo.conf you are only disabling the boot time
option of starting linux in a desired mode and hence you will always
boot in the default run level (which is not a very good idea if you were
to have more than 1 kernel compiled on your system.
If you really want to make your lilo secure, you can make use of the
restricted directive.
In /etc/lilo.conf add after
install=/boot/boot.b
password=<password> [ type your password without the angle brackets]
and also add as last line of lilo.conf
restricted
Now test your LILO by
#lilo -v -t
If this is the way you want, recompile lilo.conf by
#lilo
Reboot
A password would not be required for a normal boot but if you pass a
parameter then you would be prompted for a password.
Please note, the /etc/lilo.conf will have the password in plain text.
For security reasons you may like to remove the line password=<password>
after running
#lilo
Please take extreme caution if you are doing this. If you recompile
lilo.conf after this, you will never have access.
<I repeat : Please take extreme caution before removing the
password=<password> line from lilo.conf
Under any circumstances do not run lilo from the prompt if you have
removed the password=<password> line
Regards,
--
Sunil Dhaka
in search of Linux enlightenment
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.