Kbdlock is a simple console locker program for GNU/Linux systems.
The project's homepage at Puszcza contains the latest news and patches for the project.
Stable releases are available from download.gnu.org.ua. The latest stable release is kbdlock-1.0.
Kbdlock is designed to work with Linux kernel. No configuration suite
is provided, its Makefile should work on any GNU system with Linux kernel.
Following steps are needed to install the package:
The only two variables you might want to change are INSTALLDIR and
GROUP. INSTALLDIR specifies the directory where to install
kbdlock binary. GROUP sets the name of a group whose members
are allowed to use kbdlock.
make install/etc/group.
After the installation a group named kbdlock will be created. This group is
initially empty. Add to this group the users that will be permitted to use the program.
When you leave your console, type kbdlock and it will be locked. When
you are back, hit Enter and type your system password to unlock it.
That's all.
To remind you (and anybody else), that the console is locked, kbdlock
will display:
tty is locked by username
You can turn this off by supplying -q (--quiet) command
line option.
By default, kbdlock expects you to use your system password to unlock
the console. If you wish to use another password, start the program with -p
(or --password) option and it will prompt you to enter an alternative
password.
Finally, using -t (--timeout) command line
option you can specify a timeout after which kbdlock will automatically
unlock the console. The argument to this option is either a single number, which will
be interpreted as a number of seconds, or a time specification in form
NNhNNmNNs, where NN denotes a decimal number and the letters
h, m and s mark the previous number as hours,
minutes or seconds, correspondingly. Any of these three parts may be missing.
For example, running
kbdlock -t 12h
will set the timeout to 12 hours.
Return to Sergey Poznyakoff home page.
Return to the Puszcza home page.
Please send broken links and other corrections (or suggestions) to webmaster at gnu dot org dot ua.
Copyright (C) 2005 Sergey Poznyakoff
Verbatim copying and distribution of this entire article is
permitted in any medium, provided this notice is preserved.
Updated: $Date: 2006/12/27 11:35:14 $ $Author: gray $