@ -1,48 +1,93 @@
.TH vncpasswd 1 "" "KasmVNC" "Virtual Network Computing"
.TH vncpasswd 1 "" "KasmVNC" "Virtual Network Computing"
.SH NAME
.SH NAME
vncpasswd \- change the VNC password
vncpasswd \- setup VNC users and passwords
.SH SYNOPSIS
.SH SYNOPSIS
\fB vncpasswd\fR [\fI passwd-file\fR ]
\fB vncpasswd\fR -u [\fI username\fR ] [\fI -wnod\fR ] [\fI passwd-file\fR ]
.br
\fB vncpasswd\fR \- f
.SH DESCRIPTION
.SH DESCRIPTION
.B vncpasswd
.B vncpasswd
allows you to set the password used to access VNC desktops. Its default
allows you to add users and passwords used to access VNC desktops. Multiple
behavior is to prompt for a VNC password and then store an obfuscated version
users can be added, each with its own permissions. You can set view-only, use of
of this password to \fI passwd-file\fR (or to $HOME/.vnc/passwd if no password
mouse and keyboard allowed (-w), user managment permissions (-o). See OPTIONS
file is specified.) The \fB vncserver\fP script runs \fB vncpasswd\fP the first
below for details.
time you start a VNC desktop, and it invokes \fB Xvnc\fP with the appropriate
\fB \- rfbauth\fP option. \fB vncviewer\fP can also be given a password file to
Its default behavior is to prompt for a VNC password and then store an
use via the \fB \- passwd\fP option.
obfuscated version of this password to \fI passwd-file\fR (or to
$HOME/.kasmpasswd if no password file is specified.) The \fB vncserver\fP script
The password must be at least six characters long (unless the \fB \- f\fR
will ask you to add a user the first time you start a VNC desktop. HTTP Basic
command-line option is used-- see below), and only the first eight
Authentication will be used to ask for username and password, when you connect.
characters are significant. Note that the stored password is \fB not\fP
encrypted securely - anyone who has access to this file can trivially find out
The password must be at least six characters long (maximum of 128 characters).
the plain-text password, so \fB vncpasswd\fP always sets appropriate permissions
Note that the stored password is \fB not\fP encrypted securely - anyone who has
(read and write only by the owner.) However, when accessing a VNC desktop, a
access to this file can trivially find out the plain-text password, so
challenge-response mechanism is used over the wire making it hard for anyone to
\fB vncpasswd\fP always sets appropriate permissions (read and write only by the
crack the password simply by snooping on the network.
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.
.SH OPTIONS
.SH OPTIONS
.TP
.TP
.B \- f
.B \- u \fI name\fR
Filter mode. Read a plain-text password from stdin and write an encrypted
version to stdout. Note that in filter mode, short or even empty passwords
Specify user name. There can be multiple users.
will be silently accepted.
.TP
.B \- w
Write permission. Enable user to use mouse and keyboard. The default mode is to
view only.
.TP
.B \- o
A view-only password must be separated from the normal password by a newline
Owner permission. Allow the user to add/delete users and change their
character.
permissions.
.TP
.B \- d
Delete user specified with \fI -u\fR . You need the owner permission for that.
.TP
.B \- n
Don't update their password, while updating permissions.
.SH FILES
.SH FILES
.TP
.TP
$HOME/.vnc/passwd
$HOME/.kasm passwd
Default location of the VNC password file.
Default location of the VNC password file.
.SH EXAMPLES
.TP
Create a new user foo that can to use mouse and keyboard:
$ vncpasswd -u foo -w
.TP
Create a new user foo that can view, but can't use mouse and keyboard:
$ vncpasswd -u foo
.TP
Create a new user foo that can add new users AND use mouse and keyboard:
$ vncpasswd -u foo -ow
.TP
Delete user foo
$ vncpasswd -u foo -d
.TP
Strip all permissions from user foo, making it view only. Don't touch password.
$ vncpasswd -u foo -n
.TP
Strip all permissions from user foo, making it view only. Change password.
$ vncpasswd -u foo
.TP
Add write permission for user foo. Don't touch password.
$ vncpasswd -u foo -w -n
.SH SEE ALSO
.SH SEE ALSO
.BR vncviewer (1),
.BR vncserver (1),
.BR vncserver (1),
.BR Xvnc (1)
.BR Xvnc (1)
.BR vncconfig (1),
.BR vncconfig (1),