Can't change default root password.

Posted February 19, 2017 9.8k views
Getting StartedUbuntu 16.04

I try to change the default root password on my new droplet but when i hit enter with the new password, it just resets the console and the default password doesn’t change.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
8 answers

It asks for the current password first.

I do enter the current password. When it asks for a new password I enter one. When I press enter, it goes right back to asking for the username/password. The new password doesn’t work at this point.

I have the same problem. I log in successfully, it asks to enter a new password. After I enter a new one it goes back to the start asking me to log in

You can try removing the encrypted password in the /etc/shadow file which will result in no password for the root account.

Now try to set a new password. I think that should work.

Let me know if it helps.

  • I am having same issue, i use “reset root password” and get new password from email, and i cant not login anymore (console reset after retype new password, after reset i type default pass from email, console loop again and reset again)

Woet was right however it never clicked what I was doing wrong. Thanks again.

I have the same problem, somebody know how to fix it please?