Theo Lengyel said:
[snip]
>    I have noticed that by using the following combination, I can open
> a session with ANY RUNNING VNCSERVER on that machine!!

You neglect to mention what user you are using.

> I am running on Linux Mandrake 9.1, tightvnc 1.2.7-2,
>
>     # first run the viewer in reverse mode:
>     # (-listen 99 makes it listen on port 5599)
>
> $ vncviewer -listen 99 &

[EMAIL PROTECTED] whooper]$ vncviewer -listen 99 &

>     # let's see the running servers ...
>
> $ ps auxw | grep Xvnc
> root  [snip] Xvnc :0 -desktop X -ht ... etc.
> wanda [snip] Xvnc :1 -desktop X -http ... etc.
> jack  [snip] Xvnc :2 -desktop X -httpd ... etc.
> mark  [snip] Xvnc :3 -desktop X -httpd /u ... etc.

[EMAIL PROTECTED] whooper]$ ps waux | grep Xvnc
whoopertest [snip] Xvnc :1 -desktop X...
whooper     [snip] Xvnc :2 -desktop X...
whooper     [snip] grep Xvnc


>     # take your pick of X display numbers and you can open a
>     # connection with vncconnect ...
>     # lets pick the display number root is using :0
>
> $ vncconnect -display :0  localhost:5599

[EMAIL PROTECTED] whooper]$ vncconnect -display :1 localhost:5599
Xlib: connection to ":1.0" refused by server
Xlib: Client is not authorized to connect to Server
vncconnect: unable to open display ":1"
[EMAIL PROTECTED] whooper]$

[EMAIL PROTECTED] whooper]$ vncconnect -display :2 localhost:5599

Works as expected.

[EMAIL PROTECTED] whooper]$ vncviewer :1
VNC server supports protocol version 3.3 (viewer 3.3)
Password:
VNC authentication succeeded

(inside VNC session)
[EMAIL PROTECTED] whoopertest]$ xhost +
access control disabled, clients can connect from any host
[EMAIL PROTECTED] whoopertest]$

(back outside VNC session)
[EMAIL PROTECTED] whooper]$ vncconnect -display :1 localhost:5599

Works.

Looks like you have xhost (or xauth) issues.  What do your log files say?

-- 
William Hooper
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to