GNOME Bugzilla – Bug 552637
PolicyKit support
Last modified: 2013-05-03 16:37:57 UTC
GParted should integrate with PolicyKit. It should work read-only for normal users and ask for more rights if it actually needs them.
Thank you for the bug report Michael. Would you be able to help with the integration with PolicyKit? Bug #381557 is open regarding asking for the root password. One of the challenges with running GParted as a normal user (not root) is that the very first thing it does is scan devices. In many situations root access is required to probe the devices. Changing this within GParted appears to be a significant task that offers only a small benefit.
*** Bug 624368 has been marked as a duplicate of this bug. ***
*** Bug 641758 has been marked as a duplicate of this bug. ***
This would require a total rewrite of gparted, and so should be closed as WONTFIX. The PolicyKit model requires you to have a back end daemon that actually does the heavy lifting, and is invoked by the gui front end via DBUS calls.
Following is a quote from wikipedia: https://en.wikipedia.org/wiki/Polkit It is also possible to use polkit to execute commands with elevated privileges using the command pkexec followed by the command intended to be executed with root permissions, however sudo is a far more capable and secure utility for this task and arguably for all the facilities that polkit provides. Due to the complexity required to implement polkit for small benefit, and since the current GParted approach of using "gksudo, gksu, kdesudo" is arguably better as noted in the above quote, this report is being closed as WONTFIX.