Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 15:12:36 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Ian Moore <imoore@picknowl.com.au>
Cc:        bsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Accessing X display as root
Message-ID:  <20020811141236.GA3354@happy-idiot-talk.infracaninophi>
In-Reply-To: <200208112158.27467.imoore@picknowl.com.au>
References:  <200208112158.27467.imoore@picknowl.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 11, 2002 at 09:58:27PM +0930, Ian Moore wrote:

> How do I configure X to allow me to run apps as root when I run X as
> my normal user?

    xhost +local:

will allow any user on your local machine access to your X display.

For more fine grained control you can copy the authorization entry for
your display from your own .Xauthority file to root's:

   su root
   xauth -f ~${LOGNAME}/.Xauthority extract - $DISPLAY | xauth merge -

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
Tel: +44 1628 476614                                  Marlow
Fax: +44 0870 0522645                                 Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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