xref: /original-bsd/usr.bin/lock/lock.1 (revision 698bcc85)
1.\" Copyright (c) 1987, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)lock.1	6.8 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt LOCK 1
12.Sh NAME
13.Nm lock
14.Nd reserve a terminal
15.Sh SYNOPSIS
16.Nm lock
17.Op Fl p
18.Op Fl t Ar timeout
19.Sh DESCRIPTION
20.Nm Lock
21requests a password from the user, reads it again for verification
22and then will normally not relinquish the terminal until the password is
23repeated.
24There are two other conditions under which it will terminate: it
25will timeout after some interval of time and it may be killed by someone
26with the appropriate permission.
27.Po
28Options:
29.Pp
30.Tw Fl
31.Tc Fl t
32.Ws
33.Ar timeout
34.Cx
35The time limit (default 15 minutes) is changed to
36.Ar timeout
37minutes.
38.Tp Fl p
39Causes
40.Nm lock
41to use the user's current password instead of requesting another one.
42.Tp
43.Sh HISTORY
44.Nm Lock
45appeared in 3 BSD.
46