Configuring and Using the RUGGEDCOM APE1808
2.6 Setting the GRUB Bootloader Password
2.6
Setting the GRUB Bootloader Password
To set the GRUB bootloader password, do the following:
NOTICE
Use strong passwords. Avoid weak passwords such as
password1
,
123456789
,
abcdefgh
, etc.
1. Login or gain root access.
2. Create the GRUB bootloader password by typing:
grub-mkpasswd-pbkdf2
Type the new password when requested. GRUB displays a message similar to the
following:
PBKDF2 hash of your password is
grub.pbkdf2.sha512.10000.380AD91E6C36BB4018B5CABDAFF5CABC52A16B6EFF503B6B
B2E21199C006C526AEE3A2FF8C
F41F9A07AEFB1E8E2275ABB44C41B1429B9C5D509786E2B57A51DA.989F1E9FAC061899E1B
B8CB38D2119B26E6CE79A5
CBB637E5A611AE099EBBF7CD9BCF1A3EC516CE0E4AD007B7DF8E679220BC845E07E440F134D
ED2537081F54
Record the password for future use in the upcoming steps.
3. Using vim or nano, open the file /etc/grub.d/40_custom.
4. In the file /etc/grub.d/40_custom, add the following line:
set superusers="root"
5. Add the the following line:
password_pbkdf2 root KEY
Add the GRUB password created in
password_pbkdf2 root
grub.pbkdf2.sha512.10000.380AD91E6C36BB4018B5CABDAFF5CABC52A16B6EFF503B6B
B2E21199C006C526AEE3A2FF8CF
41F9A07AEFB1E8E2275ABB44C41B1429B9C5D509786E2B57A51DA.989F1E9FAC061899E1B
B8CB38D2119B26E6CE79A5CB
B637E5A611AE099EBBF7CD9BCF1A3EC516CE0E4AD007B7DF8E679220BC845E07E440F134D
ED2537081F54
6. Save and close the file.
7. Apply the GRUB bootloader password by typing:
grub-mkconfig -o /boot/grub/grub.cfg
8. Using vim or nano, open the file
/boot/grub/grub.cfg
and verify the user-
name and password defined within are correct.
14
RUGGEDCOM APE1808
Configuration Manual, 11/2019, C79000-G8976-1415-03