Exporting X permissions when su'ing to another user...
Ben Kahn
xkahn at zoned.net
Fri Dec 2 04:19:56 GMT 2005
On Thu, 2005-12-01 at 19:52 +0100, Reinhard Tartler wrote:
>
> > 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.
As Abel wrote previously, this doesn't work for me. The DISPLAY
environment variable isn't set, and when I do set it (to :0.0... should
it be something else?) I don't have permissions.
The problem with this method, besides not appearing to work at the
moment, would be that it's different from the way other distributions
work. That isn't a terrible thing if there is a good reason to be
different. I'm just not sure that's true here.
A solution which DOES work at the moment is ssh -X joe at localhost, but
that looses all the local X speedups, which is a shame.
--
Benjamin Kahn
xkahn at zoned.net
617 792 6271
More information about the ubuntu-devel
mailing list