GRUB-SET-PASSWORD(8)

πŸ“¦
version 2.12 Β· 5 versions
, in fedora 43, fedora 44

πŸ’– GRUB-SET-PASSWORD πŸ’–

okay so bestie, this is grub-set-password from the System Administration Utilities fam β€” and it's giving "let me generate the user.cfg file containing the hashed grub bootloader password" ✨ iykyk.


🌸 SYNOPSIS 🌸

grub-set-password [OPTION]

✨ DESCRIPTION ✨

okay real talk: the grub bootloader password may only be set by root. that's the vibe check, no exceptions, periodt πŸ‘‘

./grub-set-password prompts the user to set a password on the grub bootloader. the password gets written to a file named user.cfg, and that file lives in the GRUB directory β€” which is located by default at /boot/grub2. so cute, so tidy πŸŽ€

and here are the options, bestie, every single one:

  • -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 πŸ¦‹ (yes you can choose where it goes, main character energy fr fr)

😭 REPORTING BUGS 😭

found a bug? not me being the one to tell you but: report bugs at https://bugzilla.redhat.com. the original page also repeats this whole usage block, so here it is in full, exactly as it appears, no cap:

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://bugzilla.redhat.com.
literally the whole description and every option, again. iconic of them honestly πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

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. slay 🌈


and that's the whole page, bestie β€” GRUB-SET-PASSWORD(8), part of the System Administration Utilities, dated April 2026 🫢✨ go forth and password-protect your bootloader, you absolute icon πŸ’…

πŸ“¦ where this page comes from