[SOLVED] Reset Root Password

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

Re: [SOLVED] Reset Root Password

Postby Weatherlawyer » May 23rd, '20, 14:13

I wish I had learned Linux when I was younger.
I will passionately hate hate Tony Blair and Bill Gates forever.

I had a stroke a few years ago and remembering passwords was one of the biggest problems I had from it. No use writing them down either as I would just f :D rget where I put them.
Weatherlawyer
 
Posts: 90
Joined: Mar 21st, '14, 00:04

Re: [SOLVED] Reset Root Password

Postby isadora » May 23rd, '20, 14:21

In my opinion a totally worthless addition to the topic, which in itself is already years old.
..........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: 2744
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: [SOLVED] Reset Root Password

Postby Weatherlawyer » May 26th, '20, 15:58

isadora wrote:In my opinion a totally worthless addition to the topic, which in itself is already years old.

How do you value worth?
Weatherlawyer
 
Posts: 90
Joined: Mar 21st, '14, 00:04

Re: [SOLVED] Reset Root Password

Postby doktor5000 » May 26th, '20, 17:16

It does not contribute anything meaningful to the topic.
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: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: administrator password forgotten

Postby flink » Nov 15th, '22, 15:46

doktor5000 wrote:FWIW, a repair-install isn't required. At the bootloader, simply add init=/bin/sh to the kernel command line after pressing F3 and selecting Default, and at the prompt change the root password via passwd command.


What must be done if I boot with Mageia-8 EFI? I see no option for pressing F3 :?:
flink
 
Posts: 189
Joined: Mar 3rd, '12, 19:23

Re: [SOLVED] Reset Root Password

Postby sturmvogel » Nov 15th, '22, 18:33

On UEFI systems you need to mark the relevant line in grub you want to edit, and press "e". Thats quite standard for all distributions with UEFI grub2.
https://wiki.mageia.org/en/How_to_set_up_kernel_options#With_Grub_2_bootloader_2
sturmvogel
 
Posts: 684
Joined: Jul 30th, '12, 00:39

Re: [SOLVED] Reset Root Password

Postby morgano » Apr 3rd, '24, 17:20

Now I started my Thinkpad T61 which had not been used since some time, had Mageia 7.
The note i had on what root password it had was even elder :roll:

This is how resetting password worked out for me:

1) added "init=/bin/sh" to the kernel command line, got me to a root prompt
2) issued "passwd", and entered new password:
Problem: it responded “passwd: Authentication token manipulation error”
After a web search and some checking I found that / is not writeable.
(maybe because this system have / in LVM?)
2b) Fixed it with "mount -o remount,rw /", then passwd worked.
3) had to reboot using ctrl-alt-del, then all OK.

Uppgrading it is another adventure
Most mirrors do not carry mga7 repos. I found one:
# urpmi.removemedia -a
# urpmi.addmedia --distrib http://distrib-coffee.ipsl.jussieu.fr/p ... .1/x86_64/
# urpmi --auto-up
That went well
rebooted
changed to mga8 repos
Upgrade finished while I was writing this on same system :)
And now going to reboot and change to mga9 repos, upgrade, test.

Yes total time and data would be less if i did a fresh install, but this is an exercise. :)

over and out.
Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1314
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Previous

Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 0 guests

cron