From owner-freebsd-questions@FreeBSD.ORG Thu Feb 3 23:35:30 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DD4A16A4CE for ; Thu, 3 Feb 2005 23:35:30 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A3343D2F for ; Thu, 3 Feb 2005 23:35:29 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j13NZHfe001563; Thu, 3 Feb 2005 23:35:17 GMT Message-ID: <4202B651.3090200@cis.strath.ac.uk> Date: Thu, 03 Feb 2005 23:40:01 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050202) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gert Cuykens References: <20050202210526.GC77499@keyslapper.net> <42014E0A.5070003@mac.com> <20050203225835.GX8619@alzatex.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: "Loren M. Lang" cc: freebsd-questions@freebsd.org Subject: Re: xhost +localhost X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 23:35:30 -0000 Gert Cuykens wrote: > On Thu, 3 Feb 2005 14:58:35 -0800, Loren M. Lang 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >