How to easily add password protection to GRUB
Posted: Wed 22 Apr 2015, 16:42
Based on Karl Godt's thread here: http://www.murga-linux.com/puppy/viewto ... b37cfe516f
Wanna add password protection to your full install without installing a login manager? It's easy!
This tutorial assumes you already have grub installed.
Go to /boot/grub and rename menu.lst to menu-main.lst
Create a new menu.lst in the same folder (the "l" in "lst" is a lower-case L). Copy in this text:
Change "yourpassword" to whatever you want your password to be. Also change "hd0,5" to whatever partition you have Puppy installed. Remember that grub starts counting at 0, so if your installation is on sda3, it has to say "hd0,2".
That's it!
Wanna add password protection to your full install without installing a login manager? It's easy!
This tutorial assumes you already have grub installed.
Go to /boot/grub and rename menu.lst to menu-main.lst
Create a new menu.lst in the same folder (the "l" in "lst" is a lower-case L). Copy in this text:
Code: Select all
hiddenmenu
timeout 0
default 0
fallback 1 2 3
title "Enter password"
password yourpassword
configfile (hd0,5)/boot/grub/menu-main.lst
title "Enter password"
password yourpassword
configfile (hd0,5)/boot/grub/menu-main.lst
title "Enter password"
password yourpassword
configfile (hd0,5)/boot/grub/menu-main.lst
title "Three times password failed"
halt
That's it!