Conversation

Jarkko Sakkinen

Fix sudo in #OpenSUSE #Tumbleweed:

$ sudo cat /etc/polkit-1/rules.d/60-local.rules
polkit.addRule(function(action, subject) {
    if (subject.isInGroup("wheel")) {
        return polkit.Result.AUTH_SELF_KEEP;
    }
});
$ sudo systemctl restart polkit.service

I.e. when root login has been disabled earlier with:

# passwd -d root
# passwd -l root

#note

1
0
0

not the way to do it. instead:

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:wheel"];
});
0
0
0