I've altered my /etc/sudoers
file with sudo visudo
as follows (showing only uncommented lines, the entire file can be found here):
$ grep -v '^#[^i]' /etc/sudoers/ | grep .
root ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD:ALL
#includedir /etc/sudoers.d
Basically, I have just uncommented one line, which should disable sudo password entry for all members of the wheel group. My user is part of the wheel group as shown in the output of groups [username]
:
sys lp wheel network video optical storage scanner power ruben
However, it is not working, since I have to enter a password every time I open a new terminal window. I've rebooted a couple of times already.
What am I missing?
EDIT1: id
command returns:
uid=1000(ruben) gid=1000(ruben) groups=1000(ruben),3(sys),7(lp),10(wheel),90(network),91(video),93(optical),95(storage),96(scanner),98(power)
id
?groups username
and notgroup username
?)/etc/sudoers
and groups... I've tried adding a system group and a user group, eliminating thesudo
group... Which distro are you using? And is SELinux running? Is there a group password set? ... and could you provide the output ofgrep wheel /etc/group
/etc/sudoers.d
? Order matters.