-u option is being ignored

Bug #35961 reported by Darren Warner
8
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Running -u <user> has no effect - it will still run a program as root:

darrenw@washington:~$ gksu -u warnerd whoami
root
darrenw@washington:~$

Revision history for this message
wilk (j-cubizolles) wrote :

I've noticed the same behaviour here, which is really annoying. I used to rely heavily on gksudo to share photos databases with f-spot between users.

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

Confirmed here

mizar:[/tmp] gksu -u mdz id -a
uid=0(root) gid=0(root) groups=0(root)

Changed in gksu:
assignee: nobody → mvo
status: Unconfirmed → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

I uploaded gksu_1.3.7-0ubuntu4_source today that fixed the problem. Please confirm that it fixes the problem for you as well.

Cheers,
 Michael

Changed in gksu:
status: Confirmed → Fix Released
Revision history for this message
Darren Warner (launchpad-dazwin) wrote :

Running command line programs now work Ok but I still cannot run another X program as another user - looks like the xauth magic is getting messed up somewhere:

warnerd@washington:~$ gksu -u darrenw mozilla-thunderbird
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

(mozilla-thunderbird-bin:21113): Gtk-WARNING **: cannot open display:

This may be something completely unrelated but still falls under the problem of running programs as another user, so let me know if I should open another bug for this.

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.