You are not logged in.

#1 2014-06-07 18:22:23

C. M. Harlequin
Member
From: Australia
Registered: 2011-12-23
Posts: 35

[SOLVED] Not in sudoers file, but added to %wheel

I'm having a weird issue since updating my system today.  My username has been added to the wheel group and my sudoers file seems correct, although I'm getting the "not in sudoers file" message.  Any ideas?

/etc/sudoers

%wheel ALL=(ALL) ALL

At the prompt:

[harlequin@harchlp ~]$ groups harlequin
wheel harlequin

[harlequin@harchlp ~]$ sudo ntpd -qg
[sudo] password for harlequin: 
harlequin is not in the sudoers file.  This incident will be reported.

-- C. M.

Last edited by C. M. Harlequin (2014-06-07 18:48:09)


διπλοῦν ὁρῶσιν οἱ μαθόντες γράμματα.

Offline

#2 2014-06-07 18:40:26

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: [SOLVED] Not in sudoers file, but added to %wheel

Sudoers config read from top to bottom. So if there's anything below the wheel entry that removes or negates the groups permission, the last entry will overwrite the previous. (Hope that makes sense)

Just a guess?

Offline

#3 2014-06-07 18:41:44

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Not in sudoers file, but added to %wheel

When did you add yourself to the wheel group? Have you logged out since doing so?

Offline

#4 2014-06-07 18:46:59

C. M. Harlequin
Member
From: Australia
Registered: 2011-12-23
Posts: 35

Re: [SOLVED] Not in sudoers file, but added to %wheel

Don't believe it was either of those things; there was nothing uncommented below the definition in the sudoers file, and I logged out (even rebooted) with no success.

Now it's working as it should, but I have no idea what I did to fix it. I'll mark this solved, but I don't know how.

Thanks.


διπλοῦν ὁρῶσιν οἱ μαθόντες γράμματα.

Offline

#5 2014-06-07 18:51:21

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: [SOLVED] Not in sudoers file, but added to %wheel

IT-support rule number one: If it suddenly works, don't question why, just accept that it works :-)

Offline

Board footer

Powered by FluxBB