VLOCK(1)

πŸ’– VLOCK(1) β€” General Commands Manual πŸ’–

okay bestie, sit down, hydrate, and let me tell you about vlock β€” it's the Virtual Console lock program and honestly? it's giving security guard energy but make it Linux. 🫢


✨ NAME ✨

vlock β€” the Virtual Console lock program. that's it, that's the name, iconic behavior honestly πŸ’…


🌸 SYNOPSIS 🌸

vlock
vlock [ -a,--all ] [ -c,--current ] [ -h,--help ] [ -v,--version ]

like… you can just run it, or you can run it with flags. both are valid. both are slay. pick your fighter ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so vlock is a program that locks one or more sessions on the Linux console. and why do we care?? because it is especially useful for Linux machines where multiple users have access to the console. one user can lock his or her session(s) while still letting other users use the system on other virtual consoles. everybody eats, nobody starves. πŸ“

and if you want to be dramatic about it β€” which, same β€” the entire console can be locked and virtual console switching disabled. locked. locked locked. πŸ”₯

by default, only the current VC (that's virtual console, keep up bestie) gets locked. but with the -a,-all option, all VCs are locked. and here's the thing: those locked VCs cannot be unlocked without the invoker's password. periodt. and for the paranoid girlies out there β€” respect β€” vlock makes it a trying experience for anyone attempting to guess the password, so unauthorized access to session(s) is highly unlikely. like, good luck with that. πŸ™ˆ

okay but real talk for a sec because this one matters: it is entirely possible to completely lock yourself out of the console with the -a,--all option if you cannot remember your password!! 😭 unless you are able to kill vlock by logging in remotely via a serial terminal or network, a hard reset is the only method of ``unlocking'' the display. not me warning you and you still doing it. πŸ’€

and one more lil note: vlock works for console sessions primarily. however, there is support for trying to lock non-console sessions as well β€” but that support has not been well tested. so like… it's there. it's trying its best. be nice to it. πŸŽ€


πŸ’… OPTIONS πŸ’…

  • -a, --all β€” locks all console sessions and disables VC switching. the full send option. maximum commitment. πŸ‘‘
  • -c, --current β€” locks the current session. this is the default, so if you just run vlock with nothing else, this is what you're getting. ✨
  • -h, --help β€” prints a brief help message. when in doubt, ask for help. always. 🌈
  • -v, --version β€” prints the version number of vlock. for the girlies who need to know exactly what they're working with. πŸ’œ

πŸ’œ AUTHORS πŸ’œ

Michael K. Johnson <johnsonm@redhat.com> β€” thank you for your service king 🫢


⭐ SEE ALSO ⭐

chvt(1), deallocvt(1), openvt(1) β€” go read those too, they're all in the same friend group 🧚


and that's the whole vibe check bestie πŸ’– this page came from the kbd manual and it's dated 16 May 1996 β€” yes, it's an elder but she still slays, no cap. go lock your console. responsibly. 🌸