How to Reset the Root Password in Linux

7 comments

  1. dragonmouth

    “2. Reset Lost Root Password Using Live CD”
    I assume that could be ANY LiveCD? Does not have to be Ubuntu.

    I also assume that a USB stick can be used.

  2. PeterP

    Thanks but I didn’t manage to reset the password (tried both ways).
    The whole process worked fine but when I try to login with the new password the display turn black for a second and then the login screen appears again (no wrong password message)

    Any suggestions?

    1. Miguel Leiva-Gomez

      If you don’t get a message telling you that the authentication failed it’s much more likely a system issue. Linux seems to be logging you in fine but something isn’t able to get you into the shell for some reason or another. Corrupt bash/zsh/fish shell maybe? Have you tried installing your OS over your current installation without reformatting using a live environment?

      I’m not sure what else to do if you can’t query the system due to not being able to enter the shell. Normally I would just grab my Arch Linux thumbdrive and try to chroot into the Linux partition. I’d be happy to work with you more on this problem but by now I’m not sure how helpful I can be.

  3. dragonmouth

    In the past few months I have successfully reset my root password a couple of times using the GRUB method. Thanks, Ramces.

Leave a Comment

Yeah! You’ve decided to leave a comment. That’s fantastic! Check out our comment policy here. Let’s have a personal and meaningful conversation.