I have failed to use the sudo command as a normal user as in the error below:
The user akili from the output above is the default user i created while installing Linux mint on my machine.
I have got some solution of including the normal user in the sudoers file but i would like to know some of the possible causes of the is error?
What activities on the system can cause a default user to lose permission to use the sudo command?
I was told never, ever, N E V E R to edit the file. Only use visudo like this:
EDITOR=nano visudo
My question is - why? I mean, If I can edit all other files normally, and change anything, and if it’s true that in Linux everything is a file, then why can’t I just edit sudoers file like any other.
Maybe there are other similar files,I’m not sure.
Sorry for jumping in, it was just on my mind at the moment and I felt like I could ask here.
When you edit the sudoers file directly, you can not be able to catch errors while editing the original file but using the visudo command, the syntax used is enabled and this allows you to catch errors easily.
I’m confused. If you’re using Linux Mint…then couldn’t you have logged in with the user in question…then gone to Terminal and entered “sudo bash”?..which would have prompted you for the “Root” user’s password to allow the “Standard” user do what needs to be done? Or is that you were INTENTIONALLY trying to do it the way you did?..just trying to get a handle on it…not trying to be asinine…
Yes i logged as the user in question(akili) from the screen shot in the question then i received the error message as you can see from the stderr message.