How to Password Protect GRUB ?

GRUB is a default bootloader in all Unix-like operating system. To prevent unauthorized person to access system we may required to have grub with password protected.

Configuration:

STEP 1:

Create a password for GRUB, we need to be a root user and to type below command. When prompted type grub password twice and press enter. This will return MD5 hash password. Please copy or note it down.