After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552637 - PolicyKit support
PolicyKit support
Status: RESOLVED WONTFIX
Product: gparted
Classification: Other
Component: application
GIT HEAD
Other Linux
: Normal enhancement
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
: 624368 641758 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-17 13:17 UTC by Michael Monreal
Modified: 2013-05-03 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Monreal 2008-09-17 13:17:37 UTC
GParted should integrate with PolicyKit. It should work read-only for normal users and ask for more rights if it actually needs them.
Comment 1 Curtis Gedak 2008-09-22 16:02:24 UTC
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.
Comment 2 Curtis Gedak 2011-01-25 21:27:11 UTC
*** Bug 624368 has been marked as a duplicate of this bug. ***
Comment 3 Curtis Gedak 2011-02-10 17:58:56 UTC
*** Bug 641758 has been marked as a duplicate of this bug. ***
Comment 4 Phillip Susi 2013-05-02 15:31:26 UTC
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.
Comment 5 Curtis Gedak 2013-05-03 16:37:57 UTC
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.