4.3BSD beta release manual page
[unix-history] / usr / src / usr.bin / lock / lock.1
index c022dcd..6606510 100644 (file)
@@ -2,22 +2,32 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)lock.1      5.1 (Berkeley) %G%
+.\"    @(#)lock.1      6.1 (Berkeley) %G%
 .\"
 .\"
-.TH LOCK 1 "24 February 1979"
+.TH LOCK 1 ""
 .UC
 .SH NAME
 lock \- reserve a terminal
 .SH SYNOPSIS
 .B lock
 .UC
 .SH NAME
 lock \- reserve a terminal
 .SH SYNOPSIS
 .B lock
+[
+.B \-number
+]
+.br
 .SH DESCRIPTION
 .I Lock
 .SH DESCRIPTION
 .I Lock
-requests a password from the user, then prints "LOCKED" on
-the terminal and refuses to relinquish the terminal until
-the password is repeated.  If the user forgets the password,
-he has no other recourse but to login elsewhere and kill
-the lock process.
+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.
 .SH AUTHOR
 .SH AUTHOR
-Kurt Shoens
+Kurt Shoens. Timeout and other features by Eduardo Pelegri-Llopart.
 .SH BUGS
 .SH BUGS
-Should timeout after 15 minutes.
+None known.