SOLVED: Username and Password required on GRUB page

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

SOLVED: Username and Password required on GRUB page

Postby cliffsloane555 » Aug 22nd, '19, 21:30

I installed Mageia 7.1 on a USB flash drive just to check out Mageia. On bootup, a lovely GRUB page is displayed, but no matter which entry I click on, I get a terminal asking for username and password. If I just wait for the default time, the terminal pops up anyway.
None of the typical usernames work (I use a standard PW for all my distros) and I do not recall entering a username during installation. Even "root" as username did not work.

My assumption is that I should delet the partition, boot from DVD again and install again. Is there anouther way?
Last edited by cliffsloane555 on Aug 23rd, '19, 21:41, edited 1 time in total.
cliffsloane555
 
Posts: 3
Joined: Aug 22nd, '19, 21:24

Re: Username and Password required on GRUB page

Postby benmc » Aug 23rd, '19, 10:10

looks like you passworded grub.

not accepting your password may be because your keyboard and the "installed" keyboard for grub are different, ie you are typing the "correct" keys, but the keyboard layout is different, so the system is interpreting the keys differently eg, you type an "a" but the system reads a "y".

guessing also installation was from a Live medium.
The Live medium does not request or install the root and user passwords until after the first boot after install.
it is a carry-over from OEM installations from Mandrake.

When you do re-install, do not enter a password until after you reboot.
(the password fields for grub bootloader security remains blank)
Attachments
bootloadr.png
bootloadr.png (91.53 KiB) Viewed 4906 times
benmc
 
Posts: 1214
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Username and Password required on GRUB page

Postby cliffsloane555 » Aug 23rd, '19, 16:25

Yes indeed, that window looks familiar. It also does not identify a name for "user". May I assume that I should start all over?
cliffsloane555
 
Posts: 3
Joined: Aug 22nd, '19, 21:24

Re: Username and Password required on GRUB page

Postby doktor5000 » Aug 23rd, '19, 17:14

Well, if you're familiar with chroot, you could boot from some live image, chroot to the 7.1 installation and then remove the password from your grub configuration, and reinstall grub.
But you could also basically just do a "repair" installation, select all the same settings you did last time, and then don't give a bootloader password.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Username and Password required on GRUB page

Postby banjo » Aug 23rd, '19, 18:38

I made that mistake when I first installed Mageia 7. I believe that the user defaults to "root" with the password you entered at installation time.

Here is how I fixed it.

If you end up with a boot (Grub2) password, you can remove it by renaming the file /boot/grub2/user.cfg to something else or deleting it. The file contains the hashed Grub2 password, and if the file is not there, no password is requested.

I found this information at

https://www.thegeekdiary.com/centos-rhel-7-how-to-password-protect-grub2-menu-entries/

Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 476
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Username and Password required on GRUB page

Postby cliffsloane555 » Aug 23rd, '19, 19:58

Voila! Deleting user.cfg solved the problem.
Should I mark this as "solved"?
cliffsloane555
 
Posts: 3
Joined: Aug 22nd, '19, 21:24

Re: Username and Password required on GRUB page

Postby isadora » Aug 23rd, '19, 20:13

Please, and thanks. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron