Ask Your Question
0

Fedora 25 - Lost root password

asked 2017-06-28 20:15:50 -0500

mausilveira gravatar image

Hello all,

I cannot remember the root password on my Fedora 25, and my user is not member of the administrators, though I thought it was, but now I cannot sudo su, etc.. When I tried to login as root, it says password incorrect.

Well, I follow the instructions for this youtube, where is says to apply the command rw init-/bin/bash at the end of the linux line. Maybe my mistake was to use the first line on the menu, not sure if this was bad.

I was able to change the root password. When I type exit, the system crashed with a panic. I power it off, and once the GUI appeared, I was unable to login with my normal user (not sure what affect it) and also not able to login as root! A repeat the process and even added a new user with its password, and now it is even worse! System will not boot, it stops toward the end with messages that cannot start firewalld, I am at lost!

Is it salvageable? I cannot find ANYTHING related to root password recovery for Fedora 25. I assume now itis completely different from previous versions. Can anyone give me some directions? I really appreciate!

Mau

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-06-28 20:35:15 -0500

aeperezt gravatar image

updated 2017-06-28 20:44:22 -0500

Please follow documentation to recover or set new password for root https://fedoraproject.org/wiki/Howtoresetaroot_password

edit flag offensive delete link more

Comments

Thank you for your prompt response! The link you provide does not work. Would you please verify?

mausilveira gravatar imagemausilveira ( 2017-06-28 20:41:58 -0500 )edit

fixed the link.

aeperezt gravatar imageaeperezt ( 2017-06-28 20:44:58 -0500 )edit

Hello aeperezt,

thank you very much for your prompt and correct response! I start this with the youtube link here:

https://www.youtube.com/watch?v=GIiXn...

But it was missing the following steps listed on your link: # touch /.autorelabel # /sbin/reboot -f

I just went back on the rw init=/bin/bash boot mode and issue the two commands above. The server took a long time to finish the selinux update and at the end it reboot and I was able to login again with my user and also the root with my new password!

Many thanks, specially for your FAST response!

Mau

mausilveira gravatar imagemausilveira ( 2017-06-28 21:17:24 -0500 )edit
1

In Linux is better to follow documentation than videos. Great that it work and help you. Good luck.

aeperezt gravatar imageaeperezt ( 2017-06-28 21:39:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-06-28 20:15:50 -0500

Seen: 3,571 times

Last updated: Jun 28 '17