unable to configure grub password for centos 7.3

General support questions
Post Reply
hemanthbitra
Posts: 207
Joined: 2015/11/11 13:52:53
Location: Hyderbad,Telangana,India
Contact:

unable to configure grub password for centos 7.3

Post by hemanthbitra » 2017/09/12 05:42:49

Hello all,

i am not able to configure the grub password for centos

I have tried below commands and entered the password

Code: Select all

$grub2-mkpasswd-pbkdf2
and i have added password in 40_custom as shown below

Code: Select all

$vim /etc/grub.d/40_custom
set superusers="root"
export supersers
password_pbkdf2 root grub.pbkdf2.sha512.10000.5ABA329213541CA203FED5DCC68884CF7FCAC281DD451D50E5AD0F6A5C7E85B0E61AAB0D115AD664908D44224736C084900173A3C88E7C428C0F9B2ADA3C2628.30109CA7DB760037E71E6C1584177DDB7D1C4898F05D66E2B157F290EAB0F37A7C9813DD4458F9435DE1BE087FCCCCFB9D2902068770CEA6E4778D0EBEE32431
and i have ran below command

Code: Select all

grub2-mkconfig -o /boot/grub2/grub.cfg
after that i have rebooted the system when i select c or e option while show boot options
it is not asking username and passworld it is directly entering to command and grub mode

i have applied similar steps in centos 7.3 installed in Virtual Machine it is working fine
but when i try it on directly on local machine it is not working

I have installed centos 7.3 in laptop

Can you please advice how to resolve this issue.

hemanthbitra
Posts: 207
Joined: 2015/11/11 13:52:53
Location: Hyderbad,Telangana,India
Contact:

Re: unable to configure grub password for centos 7.3

Post by hemanthbitra » 2017/09/18 14:22:50

Issue is reosolved now.


I see grub settings is not working properly if i am install OS EFI mode.

Post Reply