Question

how can i change my Droplet’s root password as i dont remember the previous password i set

Posted January 5, 2020 333 views
UbuntuUbuntu 18.04

i am using ubantu 18
i uploaded a data on droplet
but the computer from which i access it through putty is not mine. now i need to change the password of root of droplet. but i dont remember the previous passwortd i changed. how can i do that

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.

×
2 answers

Hi @swadeshibmart,

You can enter your droplet from the console in your Control Panel. As soon as you are in, just type the following passwd.

Here is some more information about the command

The passwd command changes passwords for user accounts. A normal user
may only change the password for their own account, while the superuser may change the password for any account.  passwd also changes the account or associated password validity period.

Regards,
KDSys

Hello,

You can reset your password via your Control Panel. After doing so, it will email your account’s email address with the new root level password.

If using a firewall or fail2ban, you might also wish to whitelist your IP.

Once you login with your new password, it will ask you to change it. It will first ask for the current password, then ask you to enter the new one two times.

This article should provide more context into the process:
https://www.digitalocean.com/docs/droplets/how-to/reset-root-password/

Warmest regards,
Sri Charan

Submit an Answer