The vncpasswd utility should be used to create and change passwords for the TightVNC server
authentication. Xvnc uses such passwords when started with the -rfbauth command-line option (or when
started from the vncserver script).
vncpasswd allows one to enter either one or two passwords. The first password is the primary one, the
second password can be used for view-only authentication. Xvnc will restrict mouse and keyboard input
from clients who authenticated with the view-only password. The vncpasswd utility asks interactively if
it should set the second password.
The password file name defaults to $HOME/.vnc/passwd unless the -t command-line option was used (see the
OPTIONS section below). The $HOME/.vnc/ directory will be created if it does not exist.
Each password has to be longer than five characters (unless the -f command-line option was used, see its
description below). Only the first eight characters are significant. If the primary password is too
short, the program will abort. If the view-only password is too short, then only the primary password
will be saved.
Unless a file name was provided in the command-line explicitly, this utility may perform certain sanity
checks to prevent writing a password file into some hazardous place.
If at least one password was saved successfully, vncpasswd will exit with status code 0. Otherwise the
returned status code will be set to 1.