Bug 24467 - MCC (drakconf) requires password even though user is in group wheel
Summary: MCC (drakconf) requires password even though user is in group wheel
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-05 17:02 CET by Jani Välimaa
Modified: 2019-03-07 20:15 CET (History)
2 users (show)

See Also:
Source RPM: drakconf-13.17-1.mga7.src.rpm
CVE:
Status comment:


Attachments

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;
    }
});

Note You need to log in before you can comment on or make changes to this bug.