xref: /original-bsd/usr.bin/lock/lock.1 (revision cf2124ff)
1.\" Copyright (c) 1987, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)lock.1	6.9 (Berkeley) 07/27/91
7.\"
8.Dd
9.Dt LOCK 1
10.Os
11.Sh NAME
12.Nm lock
13.Nd reserve a terminal
14.Sh SYNOPSIS
15.Nm lock
16.Op Fl p
17.Op Fl t Ar timeout
18.Sh DESCRIPTION
19.Nm Lock
20requests a password from the user, reads it again for verification
21and then will normally not relinquish the terminal until the password is
22repeated.
23There are two other conditions under which it will terminate: it
24will timeout after some interval of time and it may be killed by someone
25with the appropriate permission.
26.Pp
27Options:
28.Pp
29.Bl -tag -width Fl
30.It Fl p
31A password is not requested, instead the user's current login password
32is used.
33.It Fl t Ar timeout
34The time limit (default 15 minutes) is changed to
35.Ar timeout
36minutes.
37.El
38.Sh HISTORY
39The
40.Nm lock
41command appeared in
42.Bx 3.0 .
43