xref: /original-bsd/usr.bin/lock/lock.1 (revision 1a56dd2c)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)lock.1 6.3 (Berkeley) 04/26/87

LOCK 1 ""
C
NAME
lock - reserve a terminal
SYNOPSIS
lock [ -p ] [ -number ]

DESCRIPTION
Lock requests a password from the user, reads it again for verification and then it will normally not relinquish the terminal until the password is repeated. There are three other conditions under which it will terminate: it accepts the password for root as an alternative to the one given by the user, it will timeout after some interval of time, and it may be killed by somebody with the appropriate permission. The default time limit is 15 minutes but it may be changed with the -number option where number is the time limit in minutes. The -p option has lock use the user's standard password instead of requesting another one.