Hi,
I have run into a problem with my VNC server that I run on Unix.
If I su to another user and I want the users environment I use the command "% su -
username".
This asks me then for that users password and sources that users env scripts, etc.
The problem is that my DISPLAY variable does not get set. And if I set the display
variable to one of the following (assuming that the server was assigned :1 as it's
display number):
hostname:1.0
:1.0
:1
Then I get something like: "xterm Xt error: Can't open display: :1" etc. If DISPLAY is
not set then of course I can't open any Xwindows. And interestingly enough if I set
DISPLAY to hostname:0.0, it opens the window in my root display (Not the VNC client).
It would be fine if I could fix this using xhost, but I didn't change hosts, just
userid.
So, my question is.. How do I have to set my DISPLAY env variable to open X windows if
I change my userid? Setting it to the same thing as other windows in my client have
(hostname:1.0) does not work unless I am that user. Is this some type of security
feature, or is it a problem that no one has run into yet?
-Brooke
Please CC comments to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
BTW- VNC is very cool. I am using it to work from home with my ADSL connection and
find the delay tolerable. I suppose using Xprotocol (like I expect Exceed does) would
speed it up, but then you probably lose the "same display from anywhere" feature. I am
looking forward to trying x2vnx.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------