From owner-freebsd-questions Sun Aug 11 7:12:46 2002 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 3BC0437B400 for ; Sun, 11 Aug 2002 07:12:44 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 671A443E72 for ; Sun, 11 Aug 2002 07:12:43 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7BECfTZ003538; Sun, 11 Aug 2002 15:12:41 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7BECaJO003537; Sun, 11 Aug 2002 15:12:36 +0100 (BST) Date: Sun, 11 Aug 2002 15:12:36 +0100 From: Matthew Seaman To: Ian Moore Cc: bsd-questions Subject: Re: Accessing X display as root Message-ID: <20020811141236.GA3354@happy-idiot-talk.infracaninophi> References: <200208112158.27467.imoore@picknowl.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208112158.27467.imoore@picknowl.com.au> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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