Exporting X permissions when su'ing to another user...
Abel Cheung
abelcheung at gmail.com
Thu Dec 1 23:32:26 GMT 2005
On 12/2/05, Reinhard Tartler <siretart at gmail.com> wrote:
> > ...or bug 20345
> >
> > http://bugzilla.ubuntu.com/show_bug.cgi?id=20345
> >
> > Although sudo is the preferred method in Ubuntu for privileged users to
> > gaim root privileges, there are times when su is a better choice. (For
> > example, when running as another user.)
>
> Whats the problem with 'sudo -i -u joe' to get a shell as user joe?
> X11 apps do work this way.
Just tried; nothing runs, at least even $DISPLAY is not set.
After setting $DISPLAY:
==========================
root at mari:~# DISPLAY=:0 synaptic
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(synaptic:16010): Gtk-WARNING **: cannot open display:
==========================
Regards,
Abel
>
>
>
> --
> regards,
> Reinhard
>
> --
> ubuntu-devel mailing list
> ubuntu-devel at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
>
--
Abel Cheung (GPG Key: 0xC67186FF)
Key fingerprint: 671C C7AE EFB5 110C D6D1 41EE 4152 E1F1 C671 86FF
--------------------------------------------------------------------
* GNOME Hong Kong - http://www.gnome.hk/
* Opensource Application Knowledge Assoc. - http://oaka.org/
More information about the ubuntu-devel
mailing list