xref: /minix3/usr.bin/lock/lock.1 (revision f3c74513ebca15ad1808e701ad999b4a3c4f0dab)
1*f3c74513SThomas Cort.\"	$NetBSD: lock.1,v 1.9 2003/08/07 11:14:22 agc Exp $
2*f3c74513SThomas Cort.\"
3*f3c74513SThomas Cort.\" Copyright (c) 1987, 1990, 1993
4*f3c74513SThomas Cort.\"	The Regents of the University of California.  All rights reserved.
5*f3c74513SThomas Cort.\"
6*f3c74513SThomas Cort.\" Redistribution and use in source and binary forms, with or without
7*f3c74513SThomas Cort.\" modification, are permitted provided that the following conditions
8*f3c74513SThomas Cort.\" are met:
9*f3c74513SThomas Cort.\" 1. Redistributions of source code must retain the above copyright
10*f3c74513SThomas Cort.\"    notice, this list of conditions and the following disclaimer.
11*f3c74513SThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright
12*f3c74513SThomas Cort.\"    notice, this list of conditions and the following disclaimer in the
13*f3c74513SThomas Cort.\"    documentation and/or other materials provided with the distribution.
14*f3c74513SThomas Cort.\" 3. Neither the name of the University nor the names of its contributors
15*f3c74513SThomas Cort.\"    may be used to endorse or promote products derived from this software
16*f3c74513SThomas Cort.\"    without specific prior written permission.
17*f3c74513SThomas Cort.\"
18*f3c74513SThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19*f3c74513SThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*f3c74513SThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*f3c74513SThomas Cort.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22*f3c74513SThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23*f3c74513SThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24*f3c74513SThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25*f3c74513SThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26*f3c74513SThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27*f3c74513SThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28*f3c74513SThomas Cort.\" SUCH DAMAGE.
29*f3c74513SThomas Cort.\"
30*f3c74513SThomas Cort.\"	@(#)lock.1	8.1 (Berkeley) 6/6/93
31*f3c74513SThomas Cort.\"
32*f3c74513SThomas Cort.Dd June 6, 1993
33*f3c74513SThomas Cort.Dt LOCK 1
34*f3c74513SThomas Cort.Os
35*f3c74513SThomas Cort.Sh NAME
36*f3c74513SThomas Cort.Nm lock
37*f3c74513SThomas Cort.Nd reserve a terminal
38*f3c74513SThomas Cort.Sh SYNOPSIS
39*f3c74513SThomas Cort.Nm
40*f3c74513SThomas Cort.Op Fl np
41*f3c74513SThomas Cort.Op Fl t Ar timeout
42*f3c74513SThomas Cort.Sh DESCRIPTION
43*f3c74513SThomas Cort.Nm
44*f3c74513SThomas Cortrequests a password from the user, reads it again for verification
45*f3c74513SThomas Cortand then will normally not relinquish the terminal until the password is
46*f3c74513SThomas Cortrepeated.
47*f3c74513SThomas CortThere are two other conditions under which it will terminate: it
48*f3c74513SThomas Cortwill timeout after some interval of time and it may be killed by someone
49*f3c74513SThomas Cortwith the appropriate permission.
50*f3c74513SThomas Cort.Pp
51*f3c74513SThomas CortOptions:
52*f3c74513SThomas Cort.Pp
53*f3c74513SThomas Cort.Bl -tag -width Fl
54*f3c74513SThomas Cort.It Fl n
55*f3c74513SThomas CortNo timeout is used.
56*f3c74513SThomas CortThe terminal will be locked indefinitely or until current challenge is met.
57*f3c74513SThomas Cort.It Fl p
58*f3c74513SThomas CortA password is not requested, instead the user's current login password
59*f3c74513SThomas Cortis used.
60*f3c74513SThomas CortIf the user has an S/Key key, they may also use it
61*f3c74513SThomas Cortto unlock the terminal.
62*f3c74513SThomas CortTo do this the user should enter "s/key" at the unlock "Key:" prompt.
63*f3c74513SThomas CortThe user will then be issued an S/Key challenge to which they may respond
64*f3c74513SThomas Cortwith a six-word S/Key one-time password.
65*f3c74513SThomas Cort.It Fl t Ar timeout
66*f3c74513SThomas CortThe time limit (default 15 minutes) is changed to
67*f3c74513SThomas Cort.Ar timeout
68*f3c74513SThomas Cortminutes.
69*f3c74513SThomas Cort.El
70*f3c74513SThomas Cort.Sh SEE ALSO
71*f3c74513SThomas Cort.Xr skey 1
72*f3c74513SThomas Cort.Sh HISTORY
73*f3c74513SThomas CortThe
74*f3c74513SThomas Cort.Nm
75*f3c74513SThomas Cortcommand appeared in
76*f3c74513SThomas Cort.Bx 3.0 .
77