From owner-freebsd-questions@FreeBSD.ORG Mon Feb 7 08:21:54 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 E537D16A4CF for ; Mon, 7 Feb 2005 08:21:54 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id E48AA43D60 for ; Mon, 7 Feb 2005 08:21:53 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j178LiGf027630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Feb 2005 00:21:44 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j178Lf2g027628; Mon, 7 Feb 2005 00:21:41 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Mon, 7 Feb 2005 00:21:41 -0800 From: "Loren M. Lang" To: Gert Cuykens Message-ID: <20050207082141.GA8619@alzatex.com> References: <20050202210526.GC77499@keyslapper.net> <42014E0A.5070003@mac.com> <20050203225835.GX8619@alzatex.com> <20050205064704.GH8619@alzatex.com> <20050206100500.GQ8619@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C 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: Mon, 07 Feb 2005 08:21:55 -0000 On Sun, Feb 06, 2005 at 01:31:13PM +0100, Gert Cuykens wrote: > On Sun, 6 Feb 2005 02:05:00 -0800, Loren M. Lang wrote: > > > PS is the x cookie in anyway related to the user passwd ? > > > > Completely unrelated, it's just a random number basicly. > > > > If it is a random number how can the xserver it user x random number > and not user y random number ? When the X server is first started a 128 bit binary number is generated and stored in a file .Xauthority which is created in a users home directory and made to be readable only by that user. The X server read the file on startup and, by default, only allows clients to connect that know that magic number. You can give that magic number to other people and allow them to connect using the xauth program. Every time the X server is started a new number is generated and it used instead so knowing what number was used last time the user logged in won't be useful anymore. It's pure chance that two users won't have the same magic number at the same time, AFAIK, but with 2^128 possibilities, it's EXTREMELY unlikely. -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C