apologies for a dummy question: On my CentOS 7.5 I've added my user to a wheel group and in visudo uncommented the line that wheel members can run all commands without a password. Logged in/out but it doesn't work. Added my user explicitly to run all commands without the password, logged in/out, still doesn't work. What am I doing wrong here? Many thanks in advance!
Possibly, if anyone still needs the answer, I also encountered the same situation and managed to cope with the problem following way:
In the section "example entries" of the arch-wiki for
There is a possible variant:
- Open your sudoers file with
- After the
Defaultssection (was commented in my file) add the following line
Also, if you want to enable passwordless sudo for a particular user, you can add the next line instead:
where YOUR_USERNAME should be replaced with your username.