Centos 6 GRUB default

Support for security such as Firewalls and securing linux
Post Reply
travian
Posts: 4
Joined: 2016/04/08 12:26:33

Centos 6 GRUB default

Post by travian » 2016/04/08 12:30:31

Hi,

I have a CentOS 6 installed directly from iso and unfortunately the root password was lost.

Trying to reset root via GRUB single user login, but the GRUB splash screen doesn't have the edit or append options.

Instead it has p, " or 'p' to enter a password to unlock the next set of features"
which is a password prompt for edit or append single mode init.

Is there a default password for this that I can find?
Kindly share any other alternative.

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 GRUB default

Post by TrevorH » 2016/04/08 12:51:48

No, there is no default password - the default is to have no password. If it has a password then it was set by your system administrator and you would need to ask to find out what it is. Your next alternative is to use a rescue media boot but you should consult with the person who set the password as it was obviously done to keep unauthorised people out.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

travian
Posts: 4
Joined: 2016/04/08 12:26:33

Re: Centos 6 GRUB default

Post by travian » 2016/04/08 13:09:00

Thanks for your reply,
I have double checked but the centos installation on another PC also appears to be the same.
I had done the installation and I'm sure nothing related to GRUB was changed.

With a clean install, if you interrupt the GRUB boot, you'll notice that you still don't get the a or e options, its p.
Can you confirm this? I even checked with a CentOS 5.4 and the same appears. Infact the grub.conf doesn't even have a password line and yet it prompts for p.

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 GRUB default

Post by TrevorH » 2016/04/08 13:11:16

No version of CentOS password protects grub by default at install time. I'm not even sure that it's a selectable choice during the install but I do know that it isn't done by default.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Centos 6 GRUB default

Post by gerald_clark » 2016/04/08 13:23:03

Are you sure it is not a BIOS password?

travian
Posts: 4
Joined: 2016/04/08 12:26:33

Re: Centos 6 GRUB default

Post by travian » 2016/04/08 13:36:47

Yes, I'm sure its not BIOS.
I am at the flash screen and the GRUB version etc at the top.
In the classic OS box, there is the CentOS listed with option to boot or enter p to access features.

travian
Posts: 4
Joined: 2016/04/08 12:26:33

Re: Centos 6 GRUB default

Post by travian » 2016/04/09 08:44:22

@TrevorH

Thanks for your help, just FYI.
https://www.centos.org/docs/5/html/Inst ... oader.html

Didn't find a CentOS 6 link, but I double checked in a clean install, there is an option to set a boot loader password during install.

Post Reply