Table of Contents
This tip is about the how to Lock User Virtual Console or Terminal in Linux. So read this free guide, How to Lock User Virtual Console or Terminal in Linux step by step. If you have query related to same article you may contact us.
How to Lock User Virtual Console or Terminal in Linux – Guide
When you’re working on a shared system, you might not want other users to log into your console to know exactly what you’re doing. If yes, I know a simple trick block my own session and allow other users to access the system in other virtual consoles. Thanks to vlock, it stands for virtual console lock, a command line program to lock one or more sessions on the Linux console. If necessary, you can lock the entire console and completely disable the Virtual Console toggle functionality. Vlock is especially useful for shared Linux systems that have multiple users with console access.
What is vlock?
vlock is a utility used to lock one or multiple user virtual console sessions. vlock is important in a multi-user system, it allows users to lock their own sessions while other users can still use the same system through other virtual consoles. When necessary, the entire console can be locked and also the virtual console toggle disabled. vlock mainly works for console sessions and also has support for blocking non-console sessions, but this has not been fully tested.
Installing vlock on Linux
To install the vlock program on their respective Linux systems, use.
#yum install vlock [On RHEL / CentOS / Fedora]
$ sudo apt-get install vlock [On Ubuntu / Debian / Mint]
How to use vlock on linux
There are a few options you can use with vlock and the general syntax is.
# vlock option # vlock option plugin # vlock option -t
plugin
vlock common options and usage
#vlock –current
#vlock –all
#vlock –new
#vlock-sa
#vlock –timeout 5
Final note
I hope you like the guide How to Lock User Virtual Console or Terminal in Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.