Bug 24467

Summary: MCC (drakconf) requires password even though user is in group wheel
Product: Mageia Reporter: Jani Välimaa <jani.valimaa>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: marja11, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakconf-13.17-1.mga7.src.rpm CVE:
Status comment:

Description Jani Välimaa 2019-03-05 17:02:17 CET
When launching MCC an authentication window pops up and asks for a password even though user is in group wheel.
Marja Van Waes 2019-03-06 07:16:47 CET

CC: (none) => marja11, thierry.vignaud
Assignee: bugsquad => mageiatools

Comment 1 Jani Välimaa 2019-03-07 20:15:40 CET
Works for example with the following polkit rule.

# cat /etc/polkit-1/rules.d/50-mageia-wheel.rules
/* Allow members of the wheel group to execute the defined actions 
 * without password authentication, similar to "sudo NOPASSWD:"
 */
polkit.addRule(function(action, subject) {
    if ((action.id == "org.mageia.drakconf.pkexec.run" ) &&
        subject.isInGroup("wheel"))
    {
        return polkit.Result.YES;
    }
});