Can I change root password?

Posted September 29, 2013 55.7k views
Hey, as soon as I get my droplet created, can I change my root password? Dumb question, ahhh, but just by changing the root password of my OS installed in the droplet?
1 comment

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.

7 answers
I must offer my suggestion to this with a tutorial.

First of all, yes you can change the password, in fact it is quite simple.
1. Login to your droplet as root
2. type the command "passwd" (no quotes) and press enter
3. Type in your new password - PLEASE I BEG YOU... use something with upper and lower case and a number or two and a symbol
4. Confirm the password

When it comes to using SSH Keys, I have issues with this, unless you know what you are doing, please don't While it is more secure than a password, there are issues with it. If you need to have a developer help you with some things it is easier to give him access using a username/password with privileges that YOU choose. Also, if you are using the droplet for a day or 2, having SSH Keys is nice, but not a major thing.

I hope that helps answer your question

Yes, run the command passwd and it will prompt for a new password.
Not only can you, but you should! Better yet, disable password logins and use SSH keys, instead (a lot more secure).
Gotta love than you beg people to make a good password xD

there are a quick instructions how to reset forgotten password on linux

Thanks @bossryan It works for me.. thanks man .

Submit an Answer