From owner-freebsd-questions@FreeBSD.ORG Thu Feb 3 23:42:18 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 53EDF16A4CE for ; Thu, 3 Feb 2005 23:42:18 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 279EA43D39 for ; Thu, 3 Feb 2005 23:42:17 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by rproxy.gmail.com with SMTP id f1so307647rne for ; Thu, 03 Feb 2005 15:42:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Du1ZycZbQgOHYwtJ2Ky1LIlhWwM7/LOU5E2l9KNlNXmxjnyKckH0T0i6I+/RIdpJU99tyXmuvUZ5uTe2qjwSWJJz65qbzSGRqBQhaIt8Ezvxh6klhomBJSRbONErsvSGkWsJP6UpFfzpBcj4EuzokA2m6oIQPtNjcWh8gsAbEyY= Received: by 10.38.59.52 with SMTP id h52mr168183rna; Thu, 03 Feb 2005 15:42:15 -0800 (PST) Received: by 10.38.74.23 with HTTP; Thu, 3 Feb 2005 15:42:15 -0800 (PST) Message-ID: Date: Fri, 4 Feb 2005 00:42:15 +0100 From: Gert Cuykens To: Chris Hodgins In-Reply-To: <4202B651.3090200@cis.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050202210526.GC77499@keyslapper.net> <42014E0A.5070003@mac.com> <20050203225835.GX8619@alzatex.com> <4202B651.3090200@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 Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 23:42:18 -0000 On Thu, 03 Feb 2005 23:40:01 +0000, Chris Hodgins wrote: > 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. > thx 3)what must i put in the .Xauthority file to make the screensaver work without having to use xhost local:?