PBKDF2 hash of your password is
grub.pbkdf2.sha512.10000.9CA4611006FE96BC77A...
2
Paste the encrypted long string into the le /etc/grub.d/40_custom together
with the set superusers command. Remember to keep the commented lines
at the beginning:
set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.10000.9CA4611006FE96BC77A...
3
Run grub2-mkconfig -o /boot/grub2/grub.cfg to import the changes
into the main conguration le.
After you reboot, you will be prompted for username and password when trying to
boot any menu entry. Enter root and the password you typed during the
grub2-mkpasswd-pbkdf2 command. If the credentials are correct, the system
will boot the selected boot entry.
10.3 Conguring the Boot Loader with
YaST
The easiest way to congure general options of the boot loader in your openSUSE
system is to use the YaST module. In the YaST Control Center, select System > Boot
Loader. As in Figure 9.1, “Boot Loader Settings” (page 167), this shows the current
boot loader conguration of your system and allows you to make changes.
186 Reference