Who or what is "polkit"
Why polkit is needed?
Not everything can be managed by groups. For example when the user chris should be allowed to shutdown the pc when he is sitting in front of the pc, but not be allowed when he is using ssh.
More on reddit.comPolkit and its varieties
Which polkit?
Videos
Simple question, what is the problem that polkit tried to solve? Why dbus method calls should go in a series of polkit policy checks before performing the required action? Why not just that upower checks the caller groups, if he/she belongs to "power" then it is okay, otherwise permission denied? Same goes for mount/umount/... on "plugdev" group for example.
Why retaining the Unix groups simple concept is not enough in the case dbus daemons/polkit world? What are the advantages of implementing something like polkit?
BTW: I do develop system bus daemons with desktop clients, and I do see polkit as an abuse.
Not everything can be managed by groups. For example when the user chris should be allowed to shutdown the pc when he is sitting in front of the pc, but not be allowed when he is using ssh.
Because just having groups isn't always enough. For example, you may want to allow the user to mount external drives, but not internal ones, etc. You can create 1000 groups, one for each very specific action, and then allow/deny based on that, but that just becomes maintenance hell.
Hello guys, as usual, after the fresh installation of arch I noticed, that I can't reboot or shutdown without sudo. All of this can be fixed with polkit. But there are so many versions of it: gnome, mate, xfce, just a standard package named "polkit" etc. What's the difference between all of them? Should I tweak them, or all of them are already preconfigured?