Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am no longer able to control my server from the one user I have access to. When performing sudo commands, I am presented with the following error:

USERNAMEHERE is not in the sudoers file. This incident will be reported.

Presumably this cannot be fixed without access to the root username? I can restore from a VM image to prior to the upgrade, but if I were to perform the upgrade again, what should I do differently to avoid this? I didn't see any mention of the sudoers file being overwritten in the process.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.