On Mon, Oct 16, 2006 at 11:17:39PM +0000, Alexey Toptygin wrote:
> Hi,
> 
> I've got this CentOS 4.4 machine, and I can't run X apps under sudo, since 
> they get rejected by the X-server. DISPLAY is set correctly in the sudo 
> environemnt, but xterm (for example) says 'Xlib: connection to ":0.0" 
> refused by server'.
> 
> This problem seems very familiar (I think it may have been discussed on 
> the list before), but I don't remember how to solve it. It doesn't happen 
> on my Debian box at home. Is there some magic thing I need to tell sudo to 

Make sure somethiing isn't changing $HOME to /root; it needs to be /home/$you
so that it can access the right .Xauthority file.

- Rob
.

Reply via email to