Discussion:
[Tigervnc-users] No password configured for VNC Auth
t***@piments.com
2010-02-27 13:33:05 UTC
Permalink
Hi,

why am I getting this message when I have run vncpasswd and the password
file exitst?!


local: # ssh -C -X -L 5900:localhost:5900 embryo.dyndns.info

remote:~# vncviewer localhost:0

TigerVNC Viewer for X version 1.0.0 - built Feb 22 2010 16:07:06
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.

Sat Feb 27 13:17:58 2010
CConn: connected to host localhost port 5900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8

Sat Feb 27 13:18:04 2010
main: No password configured for VNC Auth



To confirm it's looking in the same place I think it is looking I delete
the file and get a different message. That makes sense.


remote:~# rm /root/.vnc/passwd
remote:~# vncviewer localhost:0 -passwd=/root/.vnc/passwd

TigerVNC Viewer for X version 1.0.0 - built Feb 22 2010 16:07:06
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.

Sat Feb 27 13:15:26 2010
CConn: connected to host localhost port 5900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
main: Opening password file failed
***@buntybox:~# vncviewer localhost:0


After recreating the passwd file with vncpasswd I'm back to square one.

What is the REAL cause of this error ?

TIA.
t***@piments.com
2010-02-27 13:35:50 UTC
Permalink
Hi,

I seem to have some confusion about setting authorisation for x0vncserver.

I have set vncpasswd and this works with vnc.so and Xvnc but I can't
connect to x0

I set x0vncserver running via ssh login

local# ssh -C -X -L 5901:buntybox:5901 remote.dyndns.info

remote# x0vncserver -PasswordFile=/root/.vnc/passwd -rfbport=5902

Sat Feb 27 09:45:56 2010
Geometry: Desktop geometry is set to 1024x768+0+0

Sat Feb 27 09:45:57 2010
Main: XTest extension present - version 2.2
Main: Listening on port 5902





in a separte shell on local I link 5902 and run the viewer:

local# ssh -C -X -L 5902:buntybox:5902 remote.dyndns.info

remote# vncviewer localhost:0

TigerVNC Viewer for X version 1.0.0 - built Feb 22 2010 16:07:06
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.

Sat Feb 27 09:48:39 2010
CConn: connected to host localhost port 5900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8


Sat Feb 27 10:00:42 2010
Connections: accepted: 127.0.0.1::37557
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

Sat Feb 27 10:00:53 2010
Main: Enabling 8 buttons of X pointer device

Sat Feb 27 10:01:02 2010
Main: Allocated basic Xlib image
VNCSConnST: Server default pixel format depth 24 (32bpp)
little-endian rgb888
VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888

Sat Feb 27 10:01:41 2010
Connections: closed: 127.0.0.1::37557 (Clean disconnection)
SMsgWriter: framebuffer updates 4
SMsgWriter: Tight rects 23, bytes 38113
SMsgWriter: raw bytes equivalent 3564820, compression ratio 93.532915



remote# vncserver -kill :2

Can't find file /root/.vnc/buntybox:2.pid
You'll have to kill the Xvnc process manually

remote# vncserver -kill :1

Can't find file /root/.vnc/buntybox:1.pid
You'll have to kill the Xvnc process manually

Sat Feb 27 09:48:47 2010
main: No password configured for VNC Auth



remote# vncviewer localhost:2
t***@piments.com
2010-02-27 20:26:35 UTC
Permalink
Post by t***@piments.com
Hi,
I seem to have some confusion about setting authorisation for
x0vncserver.
Ok found it , I had run dpkg reconfigure on something and it had blown
out part of the xorg.conf file but not the vnc section so I did not
spot it.

the following three lines were removed from the "Screen" section:

Option "SecurityTypes" "VncAuth"
Option "UserPasswdVerifier" "VncAuth"
Option "PasswordFile" "/root/.vnc/passwd"


Maybe something could be done ot improve the misleading error message to
indicate what the specific problem is.

main: No password configured for VNC Auth

Impressice error trapping can be very misleading and waste an awful lot
of time

Loading...