vncpasswd(1)

πŸ“¦
version 1.16.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– vncpasswd β€” the TigerVNC password glow-up πŸ’–

okay so bestie, welcome to vncpasswd(1), part of the Virtual Network Computing manual set. this is the little tool that handles the password for your VNC desktops and honestly? she's doing the most with the least. let's get into it 🫢


✨ NAME ✨

vncpasswd β€” change the VNC password


🌸 SYNOPSIS 🌸

vncpasswd [passwd-file]
vncpasswd -f

πŸ¦‹ DESCRIPTION πŸ¦‹

so vncpasswd is the girl who lets you set the password used to access VNC desktops. that's her whole thing. her default behavior is to prompt you for a VNC password and then store an obfuscated version of it into passwd-file β€” or, if you didn't specify a password file, into $XDG_CONFIG_HOME/tigervnc/passwd. πŸ’…

the vncserver script literally runs vncpasswd the very first time you start a VNC desktop (yes, she's automatic, she's self-sufficient), and it invokes Xvnc with the appropriate -rfbauth option. and vncviewer can also be handed a password file to use via the -passwd option. everyone's using her, no cap.

okay now the rules, and listen up because these matter:

  • your password has to be at least six characters long β€” unless you're using the -f command-line option, which we'll get to below πŸ‘€
  • only the first eight characters are significant, so don't get cute with a long one thinking it's doing extra
  • > not me having to say this 😭 β€” the stored password is not encrypted securely. like, at all. anyone who has access to this file can trivially find out the plain-text password. that's just the truth of it.

but because she's a considerate icon, vncpasswd always sets appropriate permissions on the file β€” read and write only by the owner. periodt. πŸ”’

and here's the good part: when you're actually accessing a VNC desktop, a challenge-response mechanism is used over the wire, which makes it hard for anyone to crack the password just by snooping on the network. so the wire is fine, it's the file you gotta protect. 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -f β€” Filter mode. she reads a plain-text password from stdin and writes an encrypted version to stdout. and heads up: in filter mode, short or even empty passwords will be silently accepted. no warnings, no judgment, no nothing. πŸ’€

a view-only password must be separated from the normal password by a newline character. that's the whole separator. just a newline. that's it. ✨


🧚 FILES 🧚

  • $XDG_CONFIG_HOME/tigervnc/passwd
  • $HOME/.config/tigervnc/passwd

these are the default location of the VNC password file. that's where she lives when you don't tell her otherwise 🏠


πŸ‘‘ SEE ALSO πŸ‘‘

vncviewer(1), Xvnc(1) vncconfig(1), vncsession(8)

https://www.tigervnc.org


πŸ’œ AUTHORS πŸ’œ

Tristan Richardson, RealVNC Ltd., Antoine Martin, D. R. Commander and others. iconic lineup fr fr 🫢

VNC was originally developed by the RealVNC team while at Olivetti Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were implemented by Constantin Kaplinsky. Many other people have since participated in development, testing and support. This manual is part of the TigerVNC software suite. ⭐


and that's the whole page, bestie πŸ’– this manual is part of the TigerVNC software suite β€” shoutout to the TigerVNC girlies who keep the whole thing running, mwah πŸŽ€βœ¨