info grub:
password
--------
- Command: password [`--md5'] passwd [new-config-file]
If used in the first section of a menu file, disable all
interactive editing control (menu entry editor and command-line)
and entries protected by the command `lock'. If the password
PASSWD is entered, it loads the NEW-CONFIG-FILE as a new config
file and restarts the GRUB Stage 2, if NEW-CONFIG-FILE is
specified. Otherwise, GRUB will just unlock the privileged
instructions. You can also use this command in the script
section, in which case it will ask for the password, before
continueing. The option `--md5' tells GRUB that PASSWD is
encrypted with `md5crypt' (*note md5crypt::).
|