Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

Graphical Environments & Desktops • Re: New Polkit/pkexec in Bookworm

$
0
0
Bumping this old thread, I found it!

Most Debian 11 and prior should be cruising bookworm by now. I have reviewed this again, remember I'm early, then mia, then late, and have now removed this old long way. Purge polkitd-pkla since it is now longer needed and craft something in /etc/polkit-1/rules.d/ like 42-user.rules with the way you like it.
https://www.freedesktop.org/software/po ... kit.8.html

Single user simplicity, also grants rights to this user local or remote, so warning

Code:

polkit.addRule(function(action, subject) {    if (subject.isInGroup("username")) {        return polkit.Result.YES;    }});
Note that the order in which things are done could matter! First make the new rule set, then delete or move the any user created files in /etc/polkit-1/localauthority/. Once empty apt will remove the directory when removing polkitd-pkla.

This completes my sudo and pkla removal.

There's always su -

Statistics: Posted by CwF — 2024-03-09 03:04



Viewing all articles
Browse latest Browse all 2849

Trending Articles