Get back to sudo group without recovery mode

I made a big mistake when executed command:

sudo usermod -G vboxusers me

instead of "gpasswd" or "adduser", and I lost sudo group. Is it possible restore it, if I dont know root password, and have only access via ssh? I also have access to PhpMyAdmin. Ubuntu linux.

1

1 Answer

I'm sorry. You're mildly hosed.

Talk to the server owner or another sudo user you know. Put on your best "I screwed up" hat and own your mistake. To regain sudo access you need to either boot to recovery mode or login as the root user. Thankfully, after you get hold of them it's a quick fix.

Edit: Did a quick google search. you are not the first person to do this with that command:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like