create a link to x-sudo

Bug #244299 reported by Loye Young on 2008-06-30
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
kdesudo (Ubuntu)
kdesudo-kde4 (Ubuntu)
ssh-askpass (Ubuntu)
ubiquity (Ubuntu)

Bug Description

gksu, gnome-sudo, and kdesudo are all packages that provide the same functionality: they provide a graphical interface to sudo that allows the user to gain root privileges. Which one depends on the default desktop environment, but from the standpoint of the program that needs root privileges, they are fungible. However, most GUI programs guess, hardcode, or depend upon a particular sudo GUI. Sometimes they get the answer wrong, which causes needless breakage and aggravation.

The various graphical interfaces to sudo should create a link to x-sudo in the /etc/alternatives directory. Then, other GUI programs can simply point to x-sudo instead of trying to [guess | parse | hardlink] which desktop environment happens to be in charge at the moment.

Such a solution would also help OEMs who want to give their customers a choice in desktop environments but also install various desktop-agnostic configuration scripts or programs. In particular, oem-config would be able to point to x-sudo irrespective of whether GNOME, KDE3, KDE4, XFCE, fluxbox, or a private label desktop environment is installed.

Happy Trails,

Loye Young
Isaac & Young Computer Company
Laredo, Texas

Loye Young (loyeyoung) wrote :

ssh-askpass is a different animal from sudo and should not be linked to this bug report. Mea culpa.

Changed in ssh-askpass:
status: New → Invalid
Colin Watson (cjwatson) wrote :

One practical problem here is that, unfortunately, the various implementations don't have matching command-line interfaces. There is the relatively trivial matter that they support different options, but, worse, they don't do argument splitting the same way, which is problematic if you want to run a program with arguments containing spaces. Observe the mess around line 72 of for an example of problems caused by this.

Jonathan Thomas (echidnaman) wrote :

kdesudo-kde4 is a dummy package in Intrepid -> Invalidating.

Changed in kdesudo-kde4:
status: New → Invalid
Colin Watson (cjwatson) on 2009-01-20
Changed in oem-config:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in kdesudo:
importance: Undecided → Wishlist
sendy dou (douyanseng) on 2009-03-25
Changed in gksu:
assignee: nobody → douyanseng
assignee: douyanseng → nobody
Colin Watson (cjwatson) on 2009-07-16
affects: oem-config (Ubuntu) → ubiquity (Ubuntu)
tags: added: oem-config

Does this bug affect gksudo? If it affects it please mark the importance to wishlist. Thank you very much!

Changed in kdesudo (Ubuntu):
status: New → Confirmed
Changed in gksu (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers