I am locked out on ubuntu after a recent update/upgrade. I have disabled remote root login to my VPS. I can access my VPS through SSH or via digitial ocean console but I am unable to issue 'sudo' command, on entering my password it says: "asad is not in the sudoers file. This incident will be reported."
closed as off-topic by muru, David Foerster, Zanna, Eric Carvalho, Mark Kirby Jan 9 '17 at 20:28
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – muru, David Foerster, Zanna, Mark Kirby
Log into your server with your user
sucommand and log in via
usermod -aG sudo asad