devnumbertwo - $h!t for developers

View Original

is not in the sudoers file

the issue: user is not in the sudoers file error occurs when attempting to run “sudo …” command

the resolution: this means exactly what it says, you (the current user) are not allowed to sudo stuff (as a different user). and in order to do so, you must be specified in the “sudoers file”.

run:

See this content in the original post

something similar to the following will appear

See this content in the original post

note: the following is the format for the privilege specification:

See this content in the original post

based on the note above you can configure your user very specifically. however, if you want to simply add your user to be able to sudo from EVERYWHERE, sudo’ing as WHOEVER, and performing ANY/ALL commands, add your user to the privilege specification:

See this content in the original post