LOCK(C) XENIX System V LOCK(C)
Name
lock - Locks a user's terminal.
Syntax
lock [-v] [ -number ]
Description
lock requests a password from the user, requests it again
for verification, then locks the terminal until the password
is reentered. If a -number is specified in the lock
command, the terminal is automatically logged out and made
available to another user after that number of minutes has
passed.
This command uses the file /etc/default/lock. This file has
two entries:
DEFLOGOUT = number
MAXLOGOUT = number
DEFLOGOUT specifies the default time in minutes a terminal
will remain locked before the user is logged out. This
default value is overridden if the -number option is used on
the command line. If DEFLOGOUT and -number are not
specified, the MAXLOGOUT value is used.
MAXLOGOUT is the maximum number of minutes a user is
permitted to lock a terminal. If a user attempts to lock a
terminal for longer than this time, lock will issue a
warning to the user that it is using the system maximum time
limit. If DEFLOGOUT and -number and MAXLOGOUT are not
specified, users are not logged out.
DEFLOGOUT and MAXLOGOUT are configured by the system
administrator to reflect the demand for terminals at the
site.
The lock may be terminated by killing the lock process.
Only the superuser and the user who invoked lock may do so.
Options
-number Sets the time limit for lock to number of minutes,
instead of the system default.
-v Specifies verbose operation.
Files
/etc/default/lock
Page 1 (printed 2/7/91)
LOCK(C) XENIX System V LOCK(C)
Notes
The file /etc/default/lock is shipped with the following
default values:
DEFLOGOUT = 30
MAXLOGOUT = 60
Page 2 (printed 2/7/91)