Release 6
[unix-history] / usr / src / usr.bin / lock / lock.1
index 8dcbf1f..50d6836 100644 (file)
@@ -1,29 +1,42 @@
-.\" Copyright (c) 1980 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1987, 1990 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)lock.1      6.2 (Berkeley) %G%
+.\" %sccs.include.redist.roff%
 .\"
 .\"
-.TH LOCK 1 ""
-.UC
-.SH NAME
-lock \- reserve a terminal
-.SH SYNOPSIS
-.B lock
-[
-.B \-number
-]
-.br
-.SH DESCRIPTION
-.I 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 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 appropiate permission.
-The default time limit is 15 minutes but it may be changed with the
-.B \-number
-option where
-.I number
-is the time limit in minutes.
+.\"    @(#)lock.1      6.9 (Berkeley) %G%
+.\"
+.Dd 
+.Dt LOCK 1
+.Os
+.Sh NAME
+.Nm lock
+.Nd reserve a terminal
+.Sh SYNOPSIS
+.Nm lock
+.Op Fl p
+.Op Fl t Ar timeout
+.Sh DESCRIPTION
+.Nm Lock
+requests a password from the user, reads it again for verification
+and then will normally not relinquish the terminal until the password is
+repeated.
+There are two other conditions under which it will terminate: it
+will timeout after some interval of time and it may be killed by someone
+with the appropriate permission.
+.Pp
+Options:
+.Pp
+.Bl -tag -width Fl
+.It Fl p
+A password is not requested, instead the user's current login password
+is used.
+.It Fl t Ar timeout 
+The time limit (default 15 minutes) is changed to
+.Ar timeout
+minutes.
+.El
+.Sh HISTORY
+The
+.Nm lock
+command appeared in
+.Bx 3.0 .