How to fix “<some user> is not in the sudoers file. This incident will be reported” in Ubuntu

You mind your own business all of a sudden, you need to use the sudo command to change something on your Ubuntu Linux system. And you realize that your user does not have permission to run commands as a root. What do you do?

Valentin Despa
DevOps with Valentine
5 min readNov 14, 2022

--

What is the problem?

--

--

Valentin Despa
DevOps with Valentine

Software developer, educator & overlander • GitLab Hero • AWS Community Builder • Postman Supernova • Imprint: http://vdespa.com/imprint