How to Install Vlock on CentOS 7
To Install Vlock on CentOS 7
Vlock is a utility used for locking one or several user virtual console sessions in Linux. It is widely applicable in case of a multi user system, since it allows users to lock their own sessions while other users can still access the same system via other virtual consoles. If needed, the entire console can also be locked down using Vlock. You can also disable switching of virtual console. It is very simple to install Vlock, and in this tutorial, you are going to learn about the method to install Vlock on CentOS 7.
Installing Vlock
Before you begin with the installation process, you ought to update your system, that can be done using the following command.
[root@linuxhelp1 ~]# yum update
Once updated, you can install the package by deploying the following command.
[root@linuxhelp1 ~]# yum install vlock* Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.dhakacom.com * epel: ftp.riken.jp * extras: mirror.dhakacom.com * updates: mirror.dhakacom.com * webtatic: sp.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package vlock.i386 0:1.3-23 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================== Package Arch Version Repository Size ============================================================================================================== Installing: vlock i386 1.3-23 a 11 k Transaction Summary ============================================================================================================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 11 k Is this ok [y/N]: y . . . Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : vlock 1/1 Installed: vlock.i386 0:1.3-23 Complete!
Vlock has been successfully installed. You can check it by locking the terminal which you are currently working on. Use the following command for the same purpose.
After typing command it will ask you root (admin) password .
[root@linuxhelp1 ~]# vlock -c
This tty (pts/0) is not a virtual console.
The pts/0 is now locked by root.
Password:
With this the installation and checking process is complete. With Vlock, you can safely work on your console without the dread of it getting disturbed by another user when working on a multi user system.
Comments ( 0 )
No comments available