From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 13:05:42 2003 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 11EB137B401 for ; Thu, 31 Jul 2003 13:05:42 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3732243FA3 for ; Thu, 31 Jul 2003 13:05:40 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h6VK5UcU018431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Jul 2003 21:05:33 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h6VK5TBf018430; Thu, 31 Jul 2003 21:05:29 +0100 (BST) (envelope-from matthew) Date: Thu, 31 Jul 2003 21:05:29 +0100 From: Matthew Seaman To: Alex Zivenko Message-ID: <20030731200529.GA18107@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Alex Zivenko , freebsd-questions@freebsd.org References: <003d01c3579c$8aabb790$0400a8c0@fire> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <003d01c3579c$8aabb790$0400a8c0@fire> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: startx - problem 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, 31 Jul 2003 20:05:42 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 31, 2003 at 10:46:42PM +0300, Alex Zivenko wrote: > Hi all! > I have a problem. When I am starting My X server with only a user privile= gies - it gives me an error containing: > error in locking authority file > .Xauthority > But when i am a root - all perfect. > What's the problem startx needs the X server to be SUID root -- if you've installed X =66rom ports you should have: lrwxr-xr-x 1 root wheel 10 May 15 12:06 /usr/X11R6/bin/X@ -> Xw= rapper-4 -r-sr-xr-x 1 root wheel 4804 Apr 24 11:52 /usr/X11R6/bin/Xwrapper= -4* -rwxr-xr-x 1 root wheel 1808362 May 15 12:06 /usr/X11R6/bin/XFree86* However, the .Xauthority file should be in your home directory, and owned by you: -rw------- 1 matthew matthew 860 Jul 27 21:16 /home/matthew/.Xauthor= ity If you've run X as root, but with $HOME set to your ordinary home directory, then I suppose that file could end up owned by root, and unreadable by your UID, which would cause the effects you're seeing. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/KXaJdtESqEQa7a0RAhf7AJ47SqX4cLFtSkjMTLWMhyNO/ATuWACbBIP7 hVfHOlZj0UzQqlh2NHLLR0k= =EWKL -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--