RE: [ILUG] X security problem

From: Burke, Gary : GIG IS&T (Gary.Burke at domain guinness.com)
Date: Mon 29 May 2000 - 14:18:55 IST


]Problem:
]
]If I edit something, the machine doesn't seem to have permission
]to write to my display.
]"_X11TransSocketINETConnect: Can't connect: errno = 4"
]
]My DISPLAY environment doesn't seem to be being used as
]I have to specify -display with any X programs.
]
]Running "xhost +<my machine> doesn't help.

Assumption: You are running some X program on the remote machine (typing
into that XTerm you ran earlier)
Hence, you need to set the DISPLAY variable within that XTerm windows
(export DISPLAY=aa.bb.cc.dd:0.0) to set the display to your own PC. If you
don't do this, then it will default to :0.0, which is the console of that
particular machine that you are connected to (the remote machine)

xhost +<my machine> won't do anything in this case. It is basically saying
that <my machine> has access to use X on whatever machine you typed the
command in on. Assuming again that you are typing that into the XTerm
windows, then you are saying that X Programs running on your local machine
can be opened on the remote machine. You want it the other way around.

Since the XTerm is opening on your local machine, then xhost is already set
on your machine.

Your problem, then, should be resolved by typing the above 'export DISPLAY'
command in the XTerm.

Gary

**********************************************************************
This e-mail and any attachment contains information which is private
and confidential and is intended for the addressee only.
If you are not an addressee, you are not authorised to read, copy or
use the e-mail or any attachment.
If you have received this e-mail in error, please notify the sender
by return e-mail and then destroy it.
**********************************************************************



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:17 GMT