Question

I'm STUPID, I guess.. help!

  • Posted on February 11, 2015
  • koopergAsked by kooperg

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 :)

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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…?

Thanks!

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.