[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: display export??



-----BEGIN PGP SIGNED MESSAGE-----

On Fri, 14 Jul 2000, Ragga Muffin wrote:

> > do I need to export DISPLAY localhost?  Im not sure of the syntax...am I on the right track?
> 
> Yes and no. What yuo need to do is temporarily permit x-connections from
> your localhost if you want to start an x program with a different
> user than the current session (in this case root)
> 
> Simply execute 'xhost +localhost' before doing a su.

I think that doing xhost local:root is better.  There are 2 reasons for
this: 
 1. You're specifying a user name, which gives added security if you've
got a multi-user system.

 2. You're specifying a local connection, not a connection that uses a
network interface.  The X server connections with use Unix sockets, not
TCP sockets.  This gives you less overhead since you don't have to send
all your data through a TCP stack.

noah

 _______________________________________________________
| Web: http://web.morgul.net/~frodo/
| PGP Public Key: http://web.morgul.net/~frodo/mail.html 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQCVAwUBOW5kTIdCcpBjGWoFAQGFjAP/V/dalkL6GK7O8Mwbgd//3GpLQLU7e5GG
wPl9hHIZm8tjx1FOHlxtnpxHw8RREof1ttubhR1n2Rvs8UVXfHpqIf0V5nQf2FGA
viuMT6NUtFfi2fcvq9607vc2nPPR8yqwe5aMFhVV3fj13PpIYRqxz0nnuH7NoU+F
3AN2DeTRBDo=
=MEnf
-----END PGP SIGNATURE-----



Reply to: