Re: Is it me or is it sudo?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 Mar 2012 08:48:47 -0400, Mark Haney wrote:

> On 03/28/2012 04:26 PM, T.C. Hollingsworth wrote:
> 
>>>
>>> Hmm, no, not that I can see.  That's the only entry with my username
>>> in it.
>>
>> Are you a member of the "wheel" group?  (You are added to this group
>> when you check the "Administrator" checkbox on the user account setup
>> screen that appears on the first reboot after installation.)  Check
>> with the `groups` command.
>>
>> If so, Fedora's default sudoers enables sudo for the wheel group (look
>> for a line starting with %wheel).  Try commenting out this line.
>>
>> -T.C.
> 
> Yes I'm a member of the wheel group.  And yes, editing that line with
> NOPASSWD works.  However, that doesn't fix my problem with just my
> username.  I can live with using the group for that, but this problem is
> bugging me all to hell.
> 
> 

I think William Hooper has explained that sudo will look through the
conf file and use the line that matches. So it is quite possible that
the line with %wheel comes after the line with your user name, so the
conf for wheel (which default to password needed) takes precedence.

To fix your issue, you probably should move the line with your user name
below the line with %wheel. However, if you have enabled wheel group,
uncomment the line containing '%wheel ... NOPASSWD' might also be OK.
No need to add an additional line.

-- 
alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux