From owner-freebsd-questions Sun Oct 7 6:12: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id CCE2B37B401 for ; Sun, 7 Oct 2001 06:11:58 -0700 (PDT) Received: from hades.hell.gr (patr530-a210.otenet.gr [212.205.215.210]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f97DBrv24232; Sun, 7 Oct 2001 16:11:53 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f97DBrq25101; Sun, 7 Oct 2001 16:11:53 +0300 (EEST) (envelope-from charon@labs.gr) Date: Sun, 7 Oct 2001 16:11:52 +0300 From: Giorgos Keramidas To: BSD Freak Cc: FreeBSD Questions Subject: Re: Running XfFree86 4 as root Message-ID: <20011007161152.A24892@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ 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 BSD Freak wrote: > Hiya all, > > I wonder if anyone can help me. I run apps such as mozilla etc as a > normal user fine under XFree86-4 (built from the ports collection). > However when I run a graphical application as root I get the following > message and it aborts: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server If you read the manpage of xhost(1) you'll find out why this happens. For the moment, you can just use: % xhost +localhost before you su to root. This should allow programs to work nicely. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message