VNC stands for Virtual Network Computing. It is a graphical user interface tool for sharing desktop system screen or to access the system remotely.
As a security feature, it uses password protection for sharing the screen. It will not allow an anonymous person to connect a VNC server without authentication.
You can change the password anytime using a simple command
vncpasswd
If you are creating VNC server first time, a text box will prompt where you have to enter a password for VNC server. It is carried out by running the vncpasswd command internally.
Tips for Valid password format:
Whenever you enter the password for VNC, It saves in a simple text file. It may not be encrypted. So if anyone is accessing your VNC server, he/she can quickly read that password file.
You can find the VNC password file in the home directory of your system.
Default path where VNC password saves:
$HOME/.vnc/passwd
You may like to read:
Sometimes you will not remember the VNC server password. In this case, you can use vncpasswd Command to change VNC password in Linux.
Precaution while sharing system by creating VNC server:
Don’t share VNC password in public or any file. Connecting the VNC server gives full control. It may harm to system f any anonymous person gets control of your system. He can run any command or even can change the files in your system. So be careful and only share your VNC server with the authorized person to whom you know personally.
Hope you are able to change VNC password in Linux with this simple vncpasswd command. For any trouble, feel free to comment below.
Hi,
When does the new password active? Immediately? Or after the next start of the VNC server? 😉
Thanks
Hi Adir, the password will be active immediately.
Thanks. 🙂