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

Re: xhost +localhost funktioniert nicht



Niels Stargardt <niels.stargardt@gmx.de> wrote:
> ich möchte manchmal ein Programm Testweise unter Root laufen lassen.
> Deshalb möchte ich es zulassen, dass irgendjemand auf meinem Rechner
> ein Fenster öffnen kann.
> Angemeldet bin ich als niels. Nachdem ich xhost +localhost und xhost
> +pondus.zoo angegeben habe, dachte ich es wäre alles in Butter. Ein
> Aufruf von xeyes in der Rootkonsole ergibt:

> pondus:/etc# xeyes Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> Error: Can't open display: :0
[...]

':0.0' geht nicht ueber TCP/IP daher nuetzt es nichts Zugriff fuer
"inet:localhost" freizugeben.
xhost(1)------------------------
NAMES
       A  complete  name has the syntax ``family:name'' where the
       families are as follows:

       inet      Internet host
[...]
       local     contains only one name, the empty string
--------------------------------

'xhost +local:' wuerde dein Problem wohl loesen, ich empfehle aber
z.B. sux. Siehe http://www.dcoul.de/faq/html/5.html#5.xdisplayzugriff

Ehe du jetzt fragst warum "DISPLAY=localhost:0.0" und xhost +localhost
nicht funktioniert, solltest du
/usr/share/doc/xfree86-common/README.Debian-upgrade.gz zu Rate ziehen.
             cu andreas



Reply to: