Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 21:05:29 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Alex Zivenko <twistfire@rambler.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: startx - problem
Message-ID:  <20030731200529.GA18107@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <003d01c3579c$8aabb790$0400a8c0@fire>
References:  <003d01c3579c$8aabb790$0400a8c0@fire>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030731200529.GA18107>