[wellylug] Can't run an x-app using su

Grant McLean grant at mclean.net.nz
Wed Jan 4 08:58:41 NZDT 2006


On Tue, 2006-01-03 at 00:48 +1300, jumbophut wrote:
> I'm in KDE, and in a console I want to be able to run:
> su -c 'konsole'
> 
> It doesn't work.  I get:
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> konsole: cannot connect to X server :0.0

It sounds like your xauth credentials are not being inherited by the new
process.  In situations like this, I've found that using 'sudo' rather
than 'su' is more X-friendly.  So this might be worth a go:

  sudo konsole

(Assuming you've set up sudo with visudo).

Cheers
Grant





More information about the wellylug mailing list