From owner-freebsd-questions Mon Oct 15 7:10: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cx2037703-a.kenner1.la.home.com (cx2037703-a.kenner1.la.home.com [24.39.27.145]) by hub.freebsd.org (Postfix) with ESMTP id C880037B407 for ; Mon, 15 Oct 2001 07:09:57 -0700 (PDT) Received: (from conrads@localhost) by cx2037703-a.kenner1.la.home.com (8.11.6/8.11.6) id f9FE9tp15160; Mon, 15 Oct 2001 09:09:55 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3BCA57DE.E801912E@telusplanet.net> Date: Mon, 15 Oct 2001 09:09:55 -0500 (CDT) Organization: @Home Network From: Conrad Sabatier To: Chris Huisman Subject: Re: Xlib connection Cc: FreeBSD Questions List 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 15-Oct-2001 Chris Huisman wrote: > Ok, I just changed the /etc/ttys file ttyv8 variable to on instead of > off, now when I su to root and try to open up emacs I get the > following error: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server > emacs: Cannot connect to X server :0.0. > Check the DISPLAY environment variable or use `-d'. > Also use the `xhost' program to verify that it is set to permit > connections from your machine. > > I don't know what's going on here. Before I modified /etc/ttys > everything was find. I was able to su to root, and open up emacs no > problem. It's just a security measure to prevent anyone from hijacking your X session. I use a little hack in my .bashrc for root: if [ $TERM = xterm-color ] then cp ~conrads/.Xauthority /root fi I know there are more "correct" ways to do this, but this works for me. -- Conrad Sabatier Sorry, no fortune this time. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message