Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vlock(1) [centos man page]

VLOCK(1)						      General Commands Manual							  VLOCK(1)

NAME
vlock - Virtual Console lock program SYNOPSIS
vlock vlock [ -a,--all ] [ -c,--current ] [ -h,--help ] [ -v,--version ] DESCRIPTION
vlock is a program to lock one or more sessions on the Linux console. This is especially useful for Linux machines which have multiple users with access to the console. One user may lock his or her session(s) while still allowing other users to use the system on other vir- tual consoles. If desired, the entire console may be locked and virtual console switching disabled. By default, only the current VC (virtual console) is locked. With the -a,-all option all VCs are locked. The locked VCs cannot be unlocked without the invoker's password. And, for the paranoid, vlock makes it a trying experience for those attempting to guess the pass- word, so unauthorized access to session(s) is highly unlikely. Please note that 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. 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. OPTIONS
-a,--all Lock all console sessions and disable VC switching. -c,--current Lock the current session (this is the default). -h,--help Print a brief help message. -v,--version Print the version number of vlock. AUTHOR
Michael K. Johnson <johnsonm@redhat.com> Linux User's Manual 16 May 1996 VLOCK(1)

Check Out this Related Man Page

VLOCK-PLUGINS(5)					     Linux Programmer's Manual						  VLOCK-PLUGINS(5)

NAME
vlock-plugins - plugin support for vlock DESCRIPTION
If vlock-main(8) is compiled with plugin support its default features are very limited: it can only lock the current session and ask for authenticiaton. However it is possible to extend this functions through plugins. These plugins are loaded when vlock-main starts and can provide hooks that are called at certain points during the lifetime of the vlock-main process. DEFAULT PLUGINS
The following plugins are provided when installing vlock with default options: all This plugin locks all sessions by disabling console switching. It is also loaded when giving the -a,--all option to vlock(1). new This plugin switches to a new virtual console before disabling console switching through the "all" plugin. It is also loaded when giving the -n,--new option to vlock(1). nosysrq Linux only. This plugin disables the Linux SysRQ mechanism before the console switching is locked by the "all" plugin. It is also loaded when giving the -s,--disable-sysrq option to vlock(1). ADDITIONAL PLUGINS
The following plugins are only available if explicitely selected at build time: caca This plugin runs a random libcaca screensaver when the screen is locked. WRITING PLUGINS
For information about writing plugins see the PLUGINS file in the vlock source distribution. SEE ALSO
vlock(1), vlock-main(8) AUTHORS
Frank Benkstein <frank-vlock@benkstein.net> Linux 10 November 2007 VLOCK-PLUGINS(5)
Man Page

15 More Discussions You Might Find Interesting

1. HP-UX

Server hung

So my server was hung when I came in this morning. It was responding to pings, but the console and telnet sessions would not respond. There was no disk activity. The display said FA1F which I discovered that the "A" represents a high CPU load. I tired several things to get it going but was forced... (6 Replies)
Discussion started by: biznatch
6 Replies

2. UNIX for Dummies Questions & Answers

Console

Hi all, Where we can run two same program on unix console at same time? (7 Replies)
Discussion started by: sonali
7 Replies

3. HP-UX

console question

Are there any reprocussions to leaving the consoles unplugged on HP L & N Class machines? We are cramped for space in the server room and we are thinking about unplugging all the console/terminals and only keeping one terminal to plug in when we need to log in directly on a box. I did a small... (3 Replies)
Discussion started by: gonzotonka
3 Replies

4. UNIX for Dummies Questions & Answers

Logging all console activity to a file - how?

Hi all, Well I've had a bit more experience with Unix-like environments since my last post, now that I have started working on my website in earnest and am doing much of the file manipulation via the command line through SSH. The thing is, I want to be able to log all console activity,... (4 Replies)
Discussion started by: patwa
4 Replies

5. AIX

Console problem

Dear gentlemen I faced one problem when i made shutdown to my server AIX pserise/6000 the problem is the console (my console is outside not inside the server) corrupted during shutdown and restart so in this case I have to reinstall the linux in the console to allow me manage LPARS in the... (11 Replies)
Discussion started by: magasem
11 Replies

6. AIX

Getting console access on freshly built AIX 5.2

Hi folks, I'm unfortunately only a Solaris/Linux guy and have a problem I can't solve. As part of an assessment of some network security software, I need to perform vulnerability scans and log (syslog event) collection from an AIX box. So I have a pSeries "B80" in front of me running AIX 5.2... (8 Replies)
Discussion started by: kaldek
8 Replies

7. HP-UX

File Locks

Hi, How to list the files which are not locked? I want to read the files that are not locked by other user only. can we do it using ls option? (5 Replies)
Discussion started by: vijaykrc
5 Replies

8. Solaris

Sunfire V100 console access

Hi guys, My current set up is I have a Laptop running redhat linux. This acts as an SSH server, and i use it to console into the LOM-A port on my Sunfire V100 using minicom. The idea is that I can remotely access and test things out. This works great, but I've just bought another V100 server... (15 Replies)
Discussion started by: Stin
15 Replies

9. Solaris

more consoles

Hi! Is it possible to add more console logins in Solaris 10 x86 like it is in Linux and FreeBSD? The Problem is, when i make some configuration in the console, kdmconfig for example, and something hangs, i cannot switch to another console to kill the process. What i want is to switch with Alt-F2... (5 Replies)
Discussion started by: donald1111
5 Replies

10. Programming

How to lock own console when idle?

Newbie here, have looked using search engine and can find nothing revelant to my problem.. Using Linux Here, I want to create a unix daemon (using C) that run to check user idle time, then if the idle time match the timeout, that console will be locked automatically (user need to enter... (14 Replies)
Discussion started by: develop_5889
14 Replies

11. Programming

How to render solid borders in NCURSES windows

Hello All Gr8 Linux Developers Out There, Background ========= I have created a ncurses application that is suppose to run only on the Linux's virtual console. This application will heavily utilize the ncurses windows to show window-based UI to the user. I am using CentOS5.x. The terminal for... (7 Replies)
Discussion started by: ku@ntum
7 Replies

12. UNIX for Dummies Questions & Answers

lock the console after 5 minutes of inactivity.

How would i force The server console to be locked automatically after 5 minutes ? I want it to happen for X as well as terminal session of the machine. My Linux distribution details. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID:... (11 Replies)
Discussion started by: pinga123
11 Replies

13. Solaris

M5000 XSCF Console disconnecting when putty session is closed

Hi, I would appreciate some help. I remotely access, across a VPN, an M5000 and when I connect to the XSCF I can then access the OS using console -d0 and then I can get to the console. The problem I have is that I need to run something which will take many hours and I can't run it in the... (6 Replies)
Discussion started by: giles.cardew
6 Replies

14. UNIX for Advanced & Expert Users

[Solved] Capture network disconnect or hung case

Hello folks, Have a process which needs to lock files to prevent simultaneous access. I could catch Ctrl + C, etc signals via the trap command. Often sessions get hung due to network disconnect leaving the lock file in place. Is there a way to catch network disconnects, etc. Thanks in... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies

15. Red Hat

Virtual Console RedHat

Hi all, I am new to this forum, I have been searching on how I can select text in a virtual console in RedHat without any luck, I would liek to select the text without using a mouse, just with keyboard, not only to select text but to move around the lines, I know Shift+PageUP will scroll up and... (8 Replies)
Discussion started by: ed_v_eta
8 Replies