Sponsored Links

Maxabout.com > Tips

Password Protect Lilo

Added on:9/4/2008 12:31:18 AM
In Linux Tips
 Rated by 1 users

If your Linux computer is accessible to more people then just yourself, and you want to beef up security you might think about a few extra measures:
1). Password protect your BIOS so people can not use a Live CD to access your Linux partitions.
2). Password protect your Lilo bootloader so it can not boot in "single user mode" ( in runlevel 1 any user can give root commands without needing a password )
3). Password protect Lilo so it will not boot at all without the lilo-password.
We will explore a few possible setups:
First we set a password Lilo will need before it will allow you to choose the OS you selected to boot ( Linux or Windows ). 
Here is an example of how the /etc/lilo.conf file should look like ( for the example I will set the password to "L1n3&ux9" ):
default="Linux"
boot=/dev/hda
map=/boot/map
keytable=/boot/us.klt
menu-scheme=wb:bw:wb:bw
prompt
nowarn
password=L1n3&ux9
timeout=100
message=/boot/message
image=/boot/vmlinuz
label="Linux"
root=/dev/hdb1
initrd=/boot/initrd.img
append="acpi=ht splash=verbose"
vga=788
read-only
other=/dev/hda1
label="windows"
table=/dev/hda


Sponsored Links
Tools
Bookmark/Discuss