changing user with SU, gives "Xlib: connection to ":0.0" refused by server"

Derek Broughton news at pointerstop.ca
Mon Oct 8 16:01:41 UTC 2007


(``-_-ยดยด) -- Fernando wrote:

> I did :
> #su OTHERUSER
> and :
> OTHERUSER at PC:~$ gedit
> just to get:
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> Any ideas?
> 
> I have a similar prob with
> #sudo -u OTHERUSER APP
> 

This is normal - X doesn't give other users access to your display.  That's
why we have gksu/gksudo/kdesu.

otoh, I routinely use sudo, get those messages, and apps still work as
expected anyway!
-- 
derek





More information about the ubuntu-users mailing list