.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
.TH GRUB-SET-PASSWORD "8" "May 2026" "The grub bootloader password may only be set by root." "System Administration Utilities"
.SH NAME
grub-set-password \- generate the user.cfg file containing the hashed grub bootloader password
.SH SYNOPSIS
.B grub-set-password
[\fI\,OPTION\/\fR]
.SH DESCRIPTION
The grub bootloader password may only be set by root.
.PP
\&./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 \fI\,/boot/grub2\/\fP.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this message and exit
.TP
\fB\-v\fR, \fB\-\-version\fR
print the version information and exit
.TP
\fB\-o\fR, \fB\-\-output_path\fR <DIRECTORY>
put user.cfg in a user\-selected directory
.SH "REPORTING BUGS"
Report bugs at https://bugzilla.redhat.com.
.PP
.br
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 \fI\,/boot/grub2\/\fP.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this message and exit
.TP
\fB\-v\fR, \fB\-\-version\fR
print the version information and exit
.TP
\fB\-o\fR, \fB\-\-output_path\fR <DIRECTORY>
put user.cfg in a user\-selected directory
.PP
.br
Report bugs at https://bugzilla.redhat.com.
.SH "SEE ALSO"
The full documentation for
.B grub-set-password
is maintained as a Texinfo manual.  If the
.B info
and
.B grub-set-password
programs are properly installed at your site, the command
.IP
.B info grub-set-password
.PP
should give you access to the complete manual.
