[SLE] SuSE 6.4 :cannot connect to X server
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user. If I su to root and type kfm or gentoo, I get the :cannot connect to X server error message. I have tried to export the DISPLAY variable with IP addr and FQ hostname and run xhost + and I get the error: (ip addr has be changed to protect the inocent). erver01:/usr/local/updates # xhost + Xlib: connection to "xx.xx.xx.xx:0.0" refused by server Xlib: Client is not authorized to connect to Server xhost: unable to open display "xx.xx.xx.xx:0.0" -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Daniel_Casey@mail.jbhunt.com wrote:
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user.
If I su to root and type kfm or gentoo, I get the :cannot connect to X server error message.
This is forbidden for security reasons, but I donŽt know where you can change that behaivour. HTH JLT -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Thu, Jun 15, 2000 at 07:39:32PM +0200, Jos? Luis Tinoco wrote:
Daniel_Casey@mail.jbhunt.com wrote:
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user.
If I su to root and type kfm or gentoo, I get the :cannot connect to X server error message.
This is forbidden for security reasons, but I donŽt know where you can change that behaivour.
To get around this limitation, add this line to your ~/.xinitrc file: xhost + localhost That will allow su to access the X server. -- -=|JP|=- "Why, oh, why didn't I take the blue pill?" Jon Pennington | Atipa Linux Solutions -o) jpennington@atipa.com | http://www.atipa.com /\\ Kansas City, MO, USA | 816-595-3000 x1550 _\_V 6D04 39E0 CAE9 9ADA 2CA3 2EBE 898A 6C37 CA1E A29C -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
José Luis Tinoco wrote:
Daniel_Casey@mail.jbhunt.com wrote:
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user.
If I su to root and type kfm or gentoo, I get the :cannot connect to X server error message.
This is forbidden for security reasons, but I donŽt know where you can change that behaivour.
See if the magic incantation xhost +localhost in your ~/.xinitrc file helps. Paul Abrahams -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On 15 Jun, Paul W. Abrahams wrote:
José Luis Tinoco wrote:
Daniel_Casey@mail.jbhunt.com wrote:
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user.
... See if the magic incantation
xhost +localhost
in your ~/.xinitrc file helps.
Paul Abrahams
A followup question: I read somewhere, many months ago, that this was a security risk, to use "magic cookies" instead. Apparently, xhost lets anyone logged onto "localhost" to control your X display. The magic cookies were supposed to give a specific user (like root) control. But wherever that information came from, it didn't supply any specifics on using magic cookies. The 'man' pages just confused me more. Does anyone know how to allow a specific user to share the X display? -- Robert Wohlfarth rjwohlfar@bigfoot.com "My theory's right. Reality needs to be fixed." -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
In order to allow root (on the local machine) to make connections to the X server you will need to type the command "xhost + <localhost name>" as any user other than root. Then you can "su" to root and then make sure your DISPLAY environment variable is set correctly. After that you will be able to use X based applications as root. Matthew R. Hamilton / Senior Associate ENS Installation/Integration Engineer Convergys Corporation On Thu, 15 Jun 2000 Daniel_Casey@mail.jbhunt.com wrote:
If I start an X program as a regular user, it works fine. Kfm and Gentoo for instance all run as a regular user.
If I su to root and type kfm or gentoo, I get the :cannot connect to X server error message.
I have tried to export the DISPLAY variable with IP addr and FQ hostname and run xhost + and I get the error: (ip addr has be changed to protect the inocent).
server01:/usr/local/updates # xhost + Xlib: connection to "xx.xx.xx.xx:0.0" refused by server Xlib: Client is not authorized to connect to Server xhost: unable to open display "xx.xx.xx.xx:0.0"
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (6)
-
abrahams@valinet.com
-
Daniel_Casey@mail.jbhunt.com
-
jpennington@atipa.com
-
matth@ghoul.techapp.com
-
rjwohlfar@bigfoot.com
-
tinoco@student.physik.uni-dortmund.de