Why pkexec and not sudo?
Hello folks, this is a general question about something that I can't get into my head. And I have less knowledge about that part of a GNU/Linux system. What is the difference of pkexec and sudo? What is the advantage of using pkexec to run BIT as root? Kind Christian
On Sun, 2022-12-18 at 19:25 +0000, c.buhtz@posteo.jp wrote:
What is the difference of pkexec and sudo? What is the advantage of using pkexec to run BIT as root?
pkexec is part of the PolKit (policy kit) and supports - a finer permission granularity than sudo (which is "all or nothing") - permission escallation by just asking the user via message ("unlock") instead of asking for root/sudo password. In other words: You can grant some administrative rights to an application without giving the user full admin rights. The policy(kit) declaration file of BiT is this one: https://github.com/bit-team/backintime/blob/3a56a4cf5ad6185b7d44d5a65ee1c07a... More details about PolKit can be found here (in German): https://wiki.ubuntuusers.de/PolicyKit/
participants (2)
-
BiT dev
-
c.buhtz@posteo.jp