I am trying to access a debian 3.1 box through vnc and run x as
root while there. But, I am not having much luck.  Here's what I am
doing: first I start vnc (using the tightvnc package):

[EMAIL PROTECTED]:~$ uname -a
Linux lincoln 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
       [EMAIL PROTECTED]:~$ vncserver  :2

New 'X' desktop is lincoln:2

Starting applications specified in /home/raub/.vnc/Xsession
Log file is /home/raub/.vnc/lincoln:2.log

[EMAIL PROTECTED]:~$ echo $DISPLAY
:2.0
[EMAIL PROTECTED]:~$

Then, I vnc to the machine.  I have no problems doing that.  Then, I pop
a terminal, check if I can pop a xclock (no problems here either).
Finally, I su and the try once again xclock:

[EMAIL PROTECTED]:~$ su
lincoln:/home/raub# echo $DISPLAY
:2.0
lincoln:/home/raub# xclock
Xlib: connection to ":2.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Error: Can't open display: :2.0
lincoln:/home/raub# exit
[EMAIL PROTECTED]:~$

In .vnc/lincoln:2.log,

AUDIT: Mon Oct  3 08:05:03 2005: 15187 Xrealvnc: client 16 rejected from
local host
  Auth name: MIT-MAGIC-COOKIE-1 ID: -1
AUDIT: Mon Oct  3 08:05:35 2005: 15187 Xrealvnc: client 9 rejected from
local host
  Auth name: MIT-MAGIC-COOKIE-1 ID: -1

Why is it being rejected?  Anything I need to do in my ~/.Xauthority?

--
Mauricio                                raub-kudria-com
(if you need to email me, use this address =)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to