~/.vnc/passwdis the default location where the VNC password is stored. The password is stored at this location when the vncserver starts for a first time. To update or change your VNC password you should use vncpasswd command. vncpasswd will promt you two times to enter your new password:
$ vncpasswd
Password:
Verify:
The vncpasswd command also accepts a password input from STDIN which also allows to store password file into different location. The following example will change the VNC password to MYVNCPASSWORD and store it to ~/.secret/vncpass given that the .secret directory exists:
$ echo MYVNCPASSWORD | vncpasswd -f > ~/.secret/passvnc
$

$ vncpasswd
Password:
Verify:
The vncpasswd command also accepts a password input from STDIN which also allows to store password file into different location. The following example will change the VNC password to MYVNCPASSWORD and store it to ~/.secret/vncpass given that the .secret directory exists:
$ echo MYVNCPASSWORD | vncpasswd -f > ~/.secret/passvnc
$

No comments:
Post a Comment