xhost +localhost

Chris Hodgins chodgins at cis.strath.ac.uk
Thu Feb 3 15:35:30 PST 2005


Gert Cuykens wrote:
> On Thu, 3 Feb 2005 14:58:35 -0800, Loren M. Lang <lorenl at alzatex.com> wrote:
> 
>>This enable all programs to have access that are using unix domain
>>sockets to not need the MIT-MAGIC-COOKIE stored in the .Xauthority file
>>in the users home directory so any user can open a program on that
>>display.  xhost +localhost adds all programs from localhost using tcp
>>connections instead.  DISPLAY=:0 causes a program to use fast unix
>>domain sockets where DISPLAY=localhost:0 causes a program to use slow
>>tcp sockets instead.  tcp sockets are really only needed for remote
>>connections and xhost +localhost won't allow any local programs to
>>access X unless they use tcp, not unix.  See my first response for more
>>information.
> 
> 
> ok time out :)
> 1)does xhost set the DISPLAY variable ?

No.  You have export the variable yourself.  xhost allows you to grant 
or deny access to others.  A user who has access and wishes to connect 
may set his DISPLAY variable to the corresponding DISPLAY.

> 2)does xhost local: also uses the tcp thingie or use it the x socket thingie ?

I think xhost local: allows access to BSD sockets, so not tcp.

> 3)what must i put in the .Xauthority file to make the screensaver work
> with having to use xhost ?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list