Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

vlock command Lock Your Terminal Sessions

 In this post, How to use vlock command Lock Your Terminal Sessions on Linux. Keep your Linux safe from Prying eyes

Use vlock command can keep unauthorized users from Linux command line. 

vlock command is a command-line program that will lock your Linux terminal, as well as virtual consoles.

Install vlock command on Linux

On Debian/Ubuntu:

sudo apt install vlock
vlock command Lock Your Terminal Sessions
 

on an RHEL-based distro like Fedora or CentOS, vlock should be installed by default. If it isn't, your run command as below:

sudo dnf install kbd

Lock Your Terminal With vlock command

vlock
The display the message, "This TTY is now locked."

vlock command line

To use your terminal, press Enter and vlock will prompt you for your password.

Locking All Virtual Terminals on Linux

With the -a or --all flag to lock all Virtual Terminal on Linux.

vlock --all
This will lock all the virtual terminals on your system

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com