Report this

What is the reason for this report?

May I reset droplet password?

Posted on September 15, 2017

Hello. I use four droplets which are all Debian. My all droplets have account that name is debian.

I accessed the passwd file.

debian:x:1000:1000:Cloud-init-user,,,:/home/debian:/bin/bash

May I change password of debian account? I’m worry about malfunction regarding on Cloud-init-user.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Yes

sudo will sign in with the “debian” account or any other account that has root privileges - ie… sudo.

sudo passwd

this will prompt you for the current password.

if you’re looking to add a user with root privileges…

sudo adduser USERNAME && sudo usermod -aG USERNAME sudo USERNAME

This will add a user prompting you to answer a few questions and then add them to the sudo group.

As far as cloud-init goes that I am unsure of. Does it work from SSH-KEY? so no passwd needed. I would spin up a dummy droplet and test it out just to see.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.