xhost: unable to open display ":0.0"

Jerry Feldman gaf at blu.org
Sat Sep 10 12:03:12 EDT 2005


On Sat, 10 Sep 2005 11:38:18 -0400
David Kramer <david at thekramers.net> wrote:

> jbk wrote:
> > # su -
> > -bash: \e[3~:delete-char: command not found
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
> > 
> > xhost:  unable to open display ":0.0"
> > 
> > This symptom occured after upgrading Fc3 to Fc4. It only happens when I 
> > login as root locally. If I SSH from another machine and then 'su -' I 
> > have no trouble.
> > 
> > "xhost +localhost" is defined in root's .bash_profile.
> > 
> > A fresh install on my laptop did not exhibit this problem.
> > 
> > I am googling the mailing lists but have yet to find reference to this 
> > particular circumstance.
> 
> I assume you started X as a regular user.  That regular user has to adjust 
> the security of the X session, not root.  Put the "xhost +localhost" in 
> _that_ user's .bash_profile.
Actually, the .xinitrc might be a better place for it. 
Additionally. "xhost +" is more generic (and a bit less secure).


-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20050910/6e54091a/attachment.sig>


More information about the Discuss mailing list