grub-set-password − generate the user.cfg file containing the hashed grub bootloader password
grub-set-password [OPTION]
The grub bootloader password may only be set by root.
./grub−set−password
prompts the user to set a password on the grub bootloader.
The password is written to a file named user.cfg which lives
in the GRUB directory located by default at
/boot/grub2.
−h, −−help
print this message and exit
−v, −−version
print the version information and exit
−o, −−output_path <DIRECTORY>
put user.cfg in a user−selected directory
Report bugs at https://bugs.rockylinux.org.
Usage:
./grub−set−password [OPTION]
./grub−set−password prompts the user to set a
password on the grub bootloader. The password is written to
a file named user.cfg which lives in the GRUB directory
located by default at /boot/grub2.
−h, −−help
print this message and exit
−v, −−version
print the version information and exit
−o, −−output_path <DIRECTORY>
put user.cfg in a user−selected directory
Report bugs at https://bugs.rockylinux.org.
The full documentation for grub-set-password is maintained as a Texinfo manual. If the info and grub-set-password programs are properly installed at your site, the command
info grub-set-password
should give you access to the complete manual.