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
? – Archemar Oct 30 '18 at 15:16groups username
and notgroup username
?) – Jeff Schaller Oct 30 '18 at 15:22/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
– RubberStamp Oct 30 '18 at 16:48/etc/sudoers.d
? Order matters. – Gilles 'SO- stop being evil' Oct 30 '18 at 19:51uid=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)
I never heard of the term primary group. I guess it is "ruben"?
– Jack Nov 02 '18 at 22:43%wheel ALL=(ALL) ALL
which should request a password for all commands for every wheel group user. – Jack Nov 02 '18 at 22:54