[Ilugc] root not able to open X display in Slackware 9.1

  • From: mssnlayam@xxxxxxxx (Suriya Narayanan M S)
  • Date: Fri Sep 3 22:33:47 2004

On Fri, Sep 03, 2004 at 09:47:43AM -0700, Saravanan M K wrote:


Thanks for the link.  As per the suggestion at the link, it worked.

1)  xhost +localhost
2)  su -
3)  export DISPLAY=localhost:0.0

But why (1) has to be executed as a normal user?  Why not as root
itself since root has all the powers?  I tried executing (1) & (3) as
root but didn't work.  Just wondering what might be the reason.


Assume you are root of machine X. That won't help you to control machine
Y. When you access a remote display (localhost:0.0), you have no contol
over it, since, it is as though you are accessing from a remote machine.
Only the person who started localhost:0.0 can decide who can connect to
it.

Suriya

Other related posts: