VLOCK-MAIN(8)
π VLOCK-MAIN(8) π
okay bestie, welcome to vlock-main, from the Linux Programmer's Manual β yes she's a section 8 girlie, she's system-y, she's iconic, let's get into it π
β¨ NAME β¨
vlock-main β locks your current virtual console. that's it, that's the job π
β¨ SYNOPSIS β¨
vlock-main [plugins...]
β¨ DESCRIPTION β¨
so vlock-main is part of vlock(1), the Virtual Console locking program for Linux πΈ It locks the current session and literally will not exit unless the current user can authenticate themselves. no vibes-based unlocking here, you need actual credentials.
the root user will also be able to unlock the session β unless that's been disabled at compile time π
the command line arguments specify plugins that should be loaded by vlock-main. see vlock-plugins(5) for more info, she has the tea β
ngl, if plugin support is disabled at compile time, the only supported argument is "all". that's the whole menu, bestie.
β¨ ENVIRONMENT VARIABLES β¨
these are the env vars that can change how vlock-main behaves, and honestly they're giving main character energy:
USERβ if this variable is set whenvlock-mainis run as root (uid 0), vlock locks the screen as this user instead of root. the root password will still be able to unlock the session, unless disabled at compile time. so like, root is still root, she's just cosplaying as someone else π§VLOCK_ALL_MESSAGEβ if this variable is set and all consoles are locked, its contents will be used as the locking message instead of the default message. custom message era πVLOCK_CURRENT_MESSAGEβ if this variable is set and only the current console is locked, its contents will be used as the locking message instead of the default message.VLOCK_MESSAGEβ if this variable is set, its contents will be used as the locking message instead of the default. this overrides the former two variables β she's the boss, the final word, periodt πVLOCK_TIMEOUTβ set this variable to specify the timeout (in seconds) after which the screen saver plugins (if any) will be invoked. if this variable is unset, or set to an invalid value, or set to 0, no timeout is used. seevlock-plugins(5)for more information about plugins β¨VLOCK_PROMPT_TIMEOUTβ set this variable to specify the amount of time (in seconds) you will have to enter your password at the password prompt. if this variable is unset, or set to an invalid value, or set to 0, no timeout is used.
β οΈ warning bestie: if this value is too low, you may not be able to unlock your session. like, you'll be locked out of your own console. do not do this to yourself π
β¨ SIGNALS β¨
several signals are ignored. vlock-main will try to exit cleanly if SIGTERM is received π«Ά she's polite like that.
β¨ SEE ALSO β¨
β¨ AUTHORS β¨
Frank Benkstein <frank-vlock@benkstein.net> π
and that's the whole page, no notes π this one's from the Linux manual, dated 28 July 2007 β vintage but still slaying, fr fr. stay locked, stay safe, mwah πβ¨π¦
π¦ where this page comes from
- debian bookworm: vlock 2.2.2-11+b1 Β· GPL-2.0-only
- debian trixie: vlock 2.2.2-12 Β· GPL-2.0-only
- nixos 26.05: vlock 2.2.2
- nixpkgs unstable: vlock 2.2.2
- ubuntu jammy: vlock 2.2.2-10 Β· GPL-2.0-only
- ubuntu noble: vlock 2.2.2-11 Β· GPL-2.0-only
- ubuntu questing: vlock 2.2.2-12
- ubuntu resolute: vlock 2.2.2-13 Β· GPL-2.0-only
- ubuntu stonking: vlock 2.2.2-14 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms