Wednesday, September 2, 2015

How to Enable and Disable VNC server password authentication in cent os

You can switch between password and non password mode by:

# vi /etc/X11/xorg.conf  (enable password)
[..]
    #Option "SecurityTypes" "None"
    Option "SecurityTypes" "VncAuth"
    Option "UserPasswdVerifier" "VncAuth"
    Option "PasswordFile" "/root/.vnc/passwd"
[..]

# vi /etc/X11/xorg.conf  (disable password)
[..]
    Option "SecurityTypes" "None"
    #Option "SecurityTypes" "VncAuth"
    #Option "UserPasswdVerifier" "VncAuth"
    #Option "PasswordFile" "/root/.vnc/passwd"
[..]

Restart X for change to take effect:
# init 3   (wait a few seconds - )

# init 5



after enabling the password: 

You should be able to type ”vncpasswd” from the terminal as root. This will enable you to type in a new password for the VNC connection.

No comments:

Post a Comment

5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...