I'm STUPID, I guess.. help!

  • Posted February 11, 2015

So, I tried to follow the new install Ubuntu guide yesterday, and deleted the root account and I’m sure I followed the guide but somehow my username is not a sudoer…

I’m very sure I put this command yesterday: gpasswd -a username sudo cause I wrote it down in my agenda etc…

But I did a hard reset from the digitalocean website… Could this have deleted my username from the sudoers list…?

Does this mean I fucked up and need to start from scratch? Or is there anyway to unlock or reset the root or give my username some more access…?

I did install an SSH key I guess… Is there any way to use that to log into root…?

Thanks ever so much :)


It’s not totally clear what you did but this is what I am inferring from what you have written:

It sounds like you disabled ssh logins for the root account as recommended in the initial server setup guides.

It sounds like you then did a power cycle (which is a hard reboot) from the control panel.

It is unlikely that the hard reset would have such a limited affect. This process can cause filesystem corruption but it would be unlikely to be so localized.

You mentioned having set up ssh keys. Did you add ssh keys after creating your droplet or from the control panel when you first created it? This is important as it will determine how to proceed.

If you initially created your droplet without an ssh key and have a root password you should still be able to log in as root via the web console in the control panel. This service does not rely on the ssh service within your droplet. Your droplet sees this as a local keyborad and display. From there you should be able to investigate as the root user and ensure that your other account has sudo enabled.

If you initially created your droplet with an ssh key but are unable to use that key to log in via ssh then you will need to open a ticket with the support team. They can reboot your droplet to a recovery environment which will allow you to mount your disk image and set a root password so once booted back to your OS you can access the droplet via the console to continue.

OMG, I got root now, thanks!!! (via digitalocean website console, guess that is not an external connection :)


Submit an 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.

well, I have the root password, I just disabled the login for root and made my account a sudoer.

But now I can’t do anything with my account, it just gets the message ‘not a sudoer’.

The only I did outside of Wordpress since yesterday is clicking the ‘power cycle’.

So, is there any way to log in with root again? Or should I backup my wordpress and re-install a droplet…?


you can’t actually delete the root account, you CAN reset the password for the account under your drolets page. you click on access, then reset root password

If by “hard reset” you actually mean “I hit the “Rebuild” button”, then yes you’ll need to log in as root and set up your account again.