rusty-snake's Tips & Tricks

Collection of useful commands and configs.

View on GitHub
25 June 2022

Passwordless cups

by rusty-snake

Frustrated by having to enter your password each time you modify printer settings in gnome-control-center?

Then allow users in the wheel group to do so without password prompt by creating /etc/polkit-1/rules.d/40-passwordless-cups.rules with this content:

polkit.addRule(function(action, subject) {
    if (action.id == "org.opensuse.cupspkhelper.mechanism.all-edit" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});
tags: