Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone say me how to set a VNC password in Ubuntu? Such that if anyone access my machine through VNC it should prompt for a password.

share|improve this question
up vote 2 down vote accepted

You can set a password when you open Remote Desktop.

enter image description here

Or withvncpasswd you can also set the password for the vnc-server.

So if someone want to connect to you, he has to enter the password.

share|improve this answer
vncpasswd doesn't work for me. – karthick87 Apr 24 '11 at 13:13
Which vnc server do you use? Start Options: vnc4server: Command to start: vncserver. Then run vncpasswd. tightvncserver: Command to start: tightvncserver. Then run vncpasswd. Gnome build in vino-server: Command to start: vino-preferences And Activate: "Allow other users to view your desktop" and set a password. – Dani3l Apr 25 '11 at 7:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.