Date: Mon, 7 Feb 2005 00:21:41 -0800 From: "Loren M. Lang" <lorenl@alzatex.com> To: Gert Cuykens <gert.cuykens@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: xhost +localhost Message-ID: <20050207082141.GA8619@alzatex.com> In-Reply-To: <ef60af09050206043146791e52@mail.gmail.com> References: <ef60af09050202095829be3b6f@mail.gmail.com> <20050202210526.GC77499@keyslapper.net> <42014E0A.5070003@mac.com> <20050203225835.GX8619@alzatex.com> <ef60af0905020315216fc3765a@mail.gmail.com> <20050205064704.GH8619@alzatex.com> <ef60af0905020516335c44c0ac@mail.gmail.com> <ef60af090502051635604d6db3@mail.gmail.com> <20050206100500.GQ8619@alzatex.com> <ef60af09050206043146791e52@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <lorenl@alzatex.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050207082141.GA8619>