changing user with SU, gives "Xlib: connection to ":0.0" refused by server" (Partily solved)

Peter Garrett peter.garrett at optusnet.com.au
Sat Oct 13 01:40:30 UTC 2007


On Thu, 11 Oct 2007 22:47:23 +0100
"(``-_-´´) -- Fernando" <Ubuntu at bugabundo.net> wrote:

> On Thursday 11 October 2007 11:03:39 Andrew Glen-Young wrote:
> > On 11/10/2007, (``-_-´´) -- Fernando <Ubuntu at bugabundo.net> wrote:
> > >
> > > I tried a different approach:
> > > sudo xhost +127.0.0.1
> > >
> > > That way, i guess, it will only open a connection to the localhost.
> > > What do you think?
> > 
> > Seems like a good enough workaround. However, the suggestion to use
> > 'gksudo' or 'gksu' is the proper, accepted solution. So use 'gksudo'
> > if you can.
> > 
> > My suggestion of using 'xhost' was really only for a quick 'n dirty
> > hack and I wouldn't really suggest you use it.
> 
> using gksu or gksudo -u USER APP will not work.
> It fails to connect. only after xhost +a localhost, gksu/gksudo works
> 
> Maybe I should report it on launchpad.
> Can you guys reproduce this on gutsy?

sudo apt-get install sux
sux username
password:

run the X app.


-- 
Peter Garrett <peter.garrett at optusnet.com.au>




More information about the ubuntu-users mailing list