Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As root create /etc/polkit-1/rules.d/90-custom.rules, and put this in it:

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.manage" &&
        subject.isInGroup("YOUR_GROUP") && subject.active) {
        return polkit.Result.YES;
    }
});

replace YOUR_GROUP above as necessary.

You can get the exact action id from the system logs after trying to authenticate.