=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.1,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/lock/lock.1 2019/07/19 18:32:19 1.19 +++ src/usr.bin/lock/lock.1 2019/07/24 20:23:09 1.20 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lock.1,v 1.19 2019/07/19 18:32:19 cheloha Exp $ +.\" $OpenBSD: lock.1,v 1.20 2019/07/24 20:23:09 schwarze Exp $ .\" .\" Copyright (c) 1987, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)lock.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: July 19 2019 $ +.Dd $Mdocdate: July 24 2019 $ .Dt LOCK 1 .Os .Sh NAME @@ -37,7 +37,7 @@ .Nd reserve a terminal .Sh SYNOPSIS .Nm lock -.Op Fl p +.Op Fl np .Op Fl a Ar style .Op Fl t Ar timeout .Sh DESCRIPTION @@ -63,6 +63,15 @@ .Ar style to get the standard prompt for that .Ar style . +.It Fl n +Lock the terminal forever. +This overrides +.Fl t +and is the default on +.Ox +unless +.Fl t +is specified. .It Fl p A password is not requested, instead the user's current login password is used. @@ -78,7 +87,9 @@ .It Fl t Ar timeout Unlock the terminal after .Ar timeout -minutes. +minutes unless +.Fl n +is also specified. When used in this manner .Nm should be invoked so that the user is safely logged out