Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I'm on xubuntu 11.10 trying to setup x11vnc server.

I followed instructions here and I can connect to VNC server - but it never asks me for password!

Is there a difference between these 2 options:

-auth file
-rfbauth passwd-file

Or why wouldn't my VNC client (remmina) ask for password. any clues?

UPDATE: OK. - I've added -rfbauth option and now authentication works with that single password.

I can connect and prompted for password:

x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 \
-auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log \
-rfbauth /etc/.x11vnc.pass

I can connect but NOT! prompted for password:

x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 \
-auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log

I don't get - what is the reason for -auth option then if not for authentication?

share|improve this question
up vote 3 down vote accepted

x11vnc -auth $XAUTHORITY starts a VNC server where you authenticate with an X cookie. A cookie is a byte sequence that is randomly generated when the X server starts and which (under most setups nowadays) any application that wants to connect to the X server must provide. The cookie is typically stored in a file called ~/.Xauthority or indicated by the XAUTHORITY environment variable. You can manipulate cookie files with the xauth command. You would not normally type X cookies manually; rather, you'd copy them with judicious use of cp (and commands such as ssh may copy them automatically). A common use case is x11vnc -auth guess, which says to use the same cookie when going through the x11vnc channel as when connecting to the X server directly.

x11vnc -rfbauth $RFB_PASSWORD_FILE starts a VNC server where you authenticate by typing a password. If you don't specify -rfbauth, anyone can connect to the VNC server (but not then connect to the X server unless they know the X cookie or your X server accepts connections without a cookie).

share|improve this answer

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.