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

Bug#429669: marked as done (xhost +localhost ignored)



Your message dated Tue, 19 Jun 2007 15:23:53 +0200
with message-id <1182259433.6879.163.camel@thor.sulgenrain.local>
and subject line Bug#429669: xhost +localhost ignored
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xbase-clients
Architecture: i386
Version: 1:7.1.ds1-2

olaf@ridcully:~$ xhost
access control enabled, only authorized clients can connect
olaf@ridcully:~$ xhost +localhost
localhost being added to access control list
olaf@ridcully:~$ xhost
access control enabled, only authorized clients can connect
INET:localhost.localdomain

olaf@ridcully:~$ su -
Password:
ridcully:~# export DISPLAY=:0
ridcully:~# xterm
Xlib: connection to ":0.0" refused by server


--- End Message ---
--- Begin Message ---
On Tue, 2007-06-19 at 14:43 +0200, Olaf Zaplinski wrote:
> Package: xbase-clients
> Architecture: i386
> Version: 1:7.1.ds1-2
> 
> olaf@ridcully:~$ xhost
> access control enabled, only authorized clients can connect
> olaf@ridcully:~$ xhost +localhost
> localhost being added to access control list
> olaf@ridcully:~$ xhost
> access control enabled, only authorized clients can connect
> INET:localhost.localdomain

As you can see, you enabled connections from localhost via TCP,
corresponding to DISPLAY=localhost:0 .

> olaf@ridcully:~$ su -
> Password:
> ridcully:~# export DISPLAY=:0
> ridcully:~# xterm
> Xlib: connection to ":0.0" refused by server

DISPLAY=:0 is a UNIX socket connection, which is something different. To
enable UNIX socket connections, use

xhost +local:<username>

Closing this non-bug.

(BTW, if you use su without -, the superuser automatically has access to
the display of the user running it)


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer

--- End Message ---

Reply to: