Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2000 15:04:58 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Jonathan Fosburgh <fosburgh@flash.net>
Cc:        Sam Xie <sam@samxie.cl.msu.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: gvim can't run in root
Message-ID:  <20000616150458.P18462@fw.wintelcom.net>
In-Reply-To: <032001bfd7be$d02b7410$ca406f8f@mdacc.tmc.edu>; from fosburgh@flash.net on Fri, Jun 16, 2000 at 01:15:11PM -0500
References:  <20000616133017.A59097@samxie.cl.msu.edu> <032001bfd7be$d02b7410$ca406f8f@mdacc.tmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jonathan Fosburgh <fosburgh@flash.net> [000616 11:16] wrote:
> ----- Original Message -----
> From: "Sam Xie" <sam@samxie.cl.msu.edu>
> To: <freebsd-questions@FreeBSD.ORG>
> 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




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