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

Re: Impossible de lancer une app X sous root



Xavier Seneque a écrit :

Bonjour,

j'ai une debian woody, et lorsque je souhaite lancer une application X sous le compte root ( apres un su ), j'ai ce message d'erreur (avec emacs par exemple):

Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to X server :0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

je lance xhost comme il me le conseil mais là aussi...
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost:  unable to open display ":0"

d'où est-ce que ça pourrait venir et comment corriger ?

root n'a pas le droit de se connecter au serveur X d'un user. En tant que user tape xhost + pour autoriser d'autres user. Man xhost pour voir ce que cela entraine. Et c'est pas une erreur ;-) c'est la securite debian.

--
:  ______ ______ ______ ______ ______ __  daniel.huhardeaux@tootai.com
: /_____// __  // __  //_____// __  // / phone.: +48 32 285 5276
:  / /  / /_/ // /_/ /  / /  / /_/ // / fax....: +48 32 285 5276
: /_/  /_____//_____/  /_/  /_/ /_//_/ mobile..: +48 602 284 546



Reply to: