[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

tightvnc, root, and debian

    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):

raub@lincoln:~$ uname -a
Linux lincoln 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
       raub@lincoln:~$ 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

raub@lincoln:~$ echo $DISPLAY

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:

raub@lincoln:~$ su
lincoln:/home/raub# echo $DISPLAY
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

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 =)

Reply to: