From owner-freebsd-questions Fri Jun 16 15: 5: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 50C9437BA32 for ; Fri, 16 Jun 2000 15:05:03 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e5GM4xW14112; Fri, 16 Jun 2000 15:04:59 -0700 (PDT) Date: Fri, 16 Jun 2000 15:04:58 -0700 From: Alfred Perlstein To: Jonathan Fosburgh Cc: Sam Xie , freebsd-questions@FreeBSD.ORG Subject: Re: gvim can't run in root Message-ID: <20000616150458.P18462@fw.wintelcom.net> References: <20000616133017.A59097@samxie.cl.msu.edu> <032001bfd7be$d02b7410$ca406f8f@mdacc.tmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <032001bfd7be$d02b7410$ca406f8f@mdacc.tmc.edu>; from fosburgh@flash.net on Fri, Jun 16, 2000 at 01:15:11PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Jonathan Fosburgh [000616 11:16] wrote: > ----- Original Message ----- > From: "Sam Xie" > To: > Sent: Friday, June 16, 2000 12:30 PM > Subject: gvim can't run in root > > > > Hello! All > > After installed vim5 on my FreeBSD 5.0-CURRENT system, I can use it as > regular user. > > If I su to root to use gvim, an error messages said, > > "Xlib: connection to "unix:0.0" refused by server > > Xlib: Client is not authorized to connect to Server > > Xlib: connection to "unix:0.0" refused by server > > Xlib: Client is not authorized to connect to Server" > > Please help me to get rid of it! > > Many Thanks! > > Sam > As the regular user type something like xhost + or xhost +localhost Telling someone to do that without explaining the problem that it has isn't the right thing to do. You should use xauth (man xauth) because using 'xhost +' allows _anyone_ on the internet to access your X server, xhost +localhost allows any user on the machine to do so. xhost is bad. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message