gksuexec broken in Breezy for changing to other users than root

Bug #24097 reported by Bjorn Hansen
10
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Applications->System Tools->Run as different user.
or
'gksuexec'

enter any command in the box and try to run it as a different user (other than
root, root appears to work). I get an error box "Unable to run /usr/bin/gksu:
No such file or directory". Of course /usr/bin/gksu *is* there, and can be used
directly via the command line.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

I can confirm that this happens. Since running things as root works for me, I
assume it uses sudo there. The problem is that the error is misleading, since
the application name is hardcoded in the error. What actually happens is that
due to the Ubuntu gksu patch to use gksudo for root, gksy now tries to run the
command --user (it sets no command if the user to run things as isn't root. The
attached patch fixes these two issues. Please apply and add to breezy-updates
since the package is much less usable the way it is now!

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Created an attachment (id=4640)
Solves both issues.

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=4642)
debdiff for the 'gksu' package

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=4643)
updated version that dosn't break the translation of the dialog

Revision history for this message
Michael Vogt (mvo) wrote :

I uploaded a fix for breezy-updates

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

The flaw disables changing to non-root users. It does not disable access for
non-admin users.

Revision history for this message
Matt Zimmerman (mdz) wrote :

upload approved

(FYI, it's a good idea to CC me on bugs where a patch for -updates is being
proposed, so that I am sure to see it)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.