[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot open display



On Thu, 21 Jun 2001, G.LeeJohnson wrote:

> Hall Stevenson wrote:
> 
> > > >      Upon su -'ing from console to say use gedit it says
> > > > cannot open display (for root)..reg user is fine....how
> > > > do i fix this.
> > > >
> > > I think you need to allow other 'hosts' to connect to your
> > > display. You can turn this on with: xhosts +
> > >
> > > as a regular user. This will allow every computer to
> > > connect to your display.
> >
> > Prepare to be scolded, Sebastian...
> >
> > Hall
> 
> thanks for offer but is there an option that won't open up a security black
> hole? <g>
> 
You can narrow it down by specifying the allowed hosts:
xhost +		allows every host
xhost +foo	allows computer 'foo' to connect
xhost -		allows only the owner of the display

I do not know how to specify a user. You could try 'xhost localhost' for
allowing all users from localhost.

Greetz,
Sebastiaan



Reply to: