Turnkey Linux: Reset root password

If you want only to reset the root password, you can do the following:

In GRUB loader type “e” on the default start item, find the line where it says “linux” and append
this to the end of the line : “init=/bin/bash”
Press ctrl-x to boot.

When you get the prmpt type:
mount -rw -o remount /

You have now enabled read access.

Then write:
passwd root

Type the password you want twice, and it will reply with OK, after this you can boot as normal with the new root password. 🙂

1 Comment

  1. Peter

    Thank you very much!


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.