• Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard
CSEstack

What do you want to Learn Today?

  • Programming
    • Tutorial- C/C++
    • Tutorial- Django
    • Tutorial- Git
    • Tutorial- HTML & CSS
    • Tutorial- Java
    • Tutorial- MySQL
    • Tutorial- Python
    • Competitive Coding Challenges
  • CSE Subject
    • (CD) Compiler Design
    • (CN) Computer Network
    • (COA) Computer Organization & Architecture
    • (DBMS) Database Management System
    • (DS) Data Structure
    • (OS) Operating System
    • (ToA) Theory of Automata
    • (WT) Web Technology
  • Interview Questions
    • Interview Questions- Company Wise
    • Interview Questions- Coding Round
    • Interview Questions- Python
    • Interview Questions- REST API
    • Interview Questions- Web Scraping
    • Interview Questions- HR Round
    • Aptitude Preparation Guide
  • GATE 2022
  • Linux
  • Trend
    • Full Stack Development
    • Artificial Intelligence (AI)
    • BigData
    • Cloud Computing
    • Machine Learning (ML)
  • Write for Us
    • Submit Article
    • Submit Source Code or Program
    • Share Your Interview Experience
  • Tools
    • IDE
    • CV Builder
    • Other Tools …
  • Jobs

How to Change VNC password in Linux Using vncpasswd Command?

Aniruddha Chaudhari/29184/3
Linux

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.

Change VNC password in Linux using vncpasswd Command:

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:

  • The password should have at least six characters.
  • Please keep password strong, so that any intruders cannot get easy access.

Where can I find VNC password file in Linux?

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:

  • How to get serial number in Linux using dmidecode Command?
  • How to get System Info using System Information Command?

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.

linuxlinux cmd
Aniruddha Chaudhari
I am complete Python Nut, love Linux and vim as an editor. I hold a Master of Computer Science from NIT Trichy. I dabble in C/C++, Java too. I keep sharing my coding knowledge and my own experience on CSEstack.org portal.

Your name can also be listed here. Got a tip? Submit it here to become an CSEstack author.

Comments

  • Reply
    Adir Iman
    October 21, 2019 at 8:38 pm

    Hi,

    When does the new password active? Immediately? Or after the next start of the VNC server? 😉

    Thanks

    • Reply
      Aniruddha Chaudhari
      October 21, 2019 at 8:50 pm

      Hi Adir, the password will be active immediately.

  • Reply
    October 21, 2019 at 9:27 pm

    Thanks. 🙂

Leave a Reply Cancel reply

Make Your Linux Run Faster

Linux- Remove Old Kernels

Linux- Auto-Remove Unused Packages

Linux Commands

Linux- Most Useful Commands

Linux- LS command [Tool]

Linux- 7 Hostname Commands

Linux- Text Search in Terminal

Linux- File Permission [Chmod Calculator]

Linux- Check Free Memory in Ubuntu

Linux- Find Total Size of the Directory

Linux- Mount/Umount USB Drive

Linux- Change VNC Password

Linux- Get Serial Number (dmidecode)

Linux- Execute Shell Script

Linux Tools

5 Free Linux screenshot tools

Vim Editor Tricks

Vim- Setting Vim of Programming

Vim- 6 Commands to Edit File

Vim- Case-Sensitive Search

Vim- How to Create Function?

© 2022 – CSEstack.org. All Rights Reserved.

  • Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard