Note that the stored password is not encrypted securely - anyone who has access to this file can trivially find out the plain-text password, so vncpasswd always sets appropriate permissions (read and write only by the owner.) However, when accessing a VNC desktop, a challenge-response mechanism is used over the wire making it hard for anyone to crack the password simply by snooping on the network. The password must be at least six characters long (unless the −f command-line option is used- see below), and only the first eight characters are significant. Vncviewer can also be given a password file to use via the −passwd option. Its default behavior is to prompt for a VNC password and then store an obfuscated version of this password to passwd-file (or to $HOME/.vnc/passwd if no password file is specified.) The vncserver script runs vncpasswd the first time you start a VNC desktop, and it invokes Xvnc with the appropriate −rfbauth option.
Vncpasswd vncpasswd NAME vncpasswd − change the VNC password SYNOPSIS vncpasswd vncpasswd −f DESCRIPTION vncpasswd allows you to set the password used to access VNC desktops.