xref: /original-bsd/usr.bin/lock/lock.1 (revision e61fc7ea)
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.7 (Berkeley) 07/24/90
7.\"
8.Dd
9.Dt LOCK 1
10.Sh NAME
11.Nm lock
12.Nd reserve a terminal
13.Sh SYNOPSIS
14.Nm lock
15.Op Fl p
16.Op Fl t Ar timeout
17.Sh DESCRIPTION
18.Nm Lock
19requests a password from the user, reads it again for verification
20and then will normally not relinquish the terminal until the password is
21repeated.
22There are two other conditions under which it will terminate: it
23will timeout after some interval of time and it may be killed by someone
24with the appropriate permission.
25.Po
26Options:
27.Pp
28.Tw Fl
29.Tc Fl t
30.Ws
31.Ar timeout
32.Cx
33The time limit (default 15 minutes) is changed to
34.Ar timeout
35minutes.
36.Tp Fl p
37Causes
38.Nm lock
39to use the user's current password instead of requesting another one.
40.Tp
41.Sh HISTORY
42.Nm Lock
43appeared in 3 BSD.
44