Actually the authorization checks in XServer is per user.
IF you start Xvnc with -ac option then it will disable authorization checks,
which is equivalent to xhost +
There is one more convoluted way of doing it without -ac option by using
xauth command.
-shashi
-----Original Message-----
From: Alan Conboy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Unix $DISPLAY env variable
I get the same thing connecting to a linux box. I just do an xhost + when I
first connect, & it will let me open gui's after I su - .
Alan
-----Original Message-----
From: Brooke Wallace (EWU) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:59 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Unix $DISPLAY env variable
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
---------------------------------------------------------------------
---------------------------------------------------------------------
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
---------------------------------------------------------------------
---------------------------------------------------------------------
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
---------------------------------------------------------------------