The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>lock</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:12 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p><b>lock</b> -- reserves a terminal</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSYS"
>SYNOPSYS</a></h1>

<p><b>lock</b> [<b>-n</b>] [<b>-p</b>] [<b>-t</b> <i>timeout</i>]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><b>lock</b> 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 privileges.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h2>

<p>All of the specified options are optional.</p>

<dl>
<dt><a name="-n"
>-n</a></dt><p class="pad"></p>

<dd>Don&#39;t use a timeout value.
Terminal will be locked forever.</dd><p class="pad"></p>

<dt><a name="-p"
>-p</a></dt><p class="pad"></p>

<dd>A password is not requested,
instead the user&#39;s current login password is used.</dd><p class="pad"></p>

<dt><a name="-t_timeout"
>-t <i>timeout</i></a></dt><p class="pad"></p>

<dd>The time limit (default 15 minutes) is changed to <i>timeout</i> minutes.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="CAVEATS"
>CAVEATS</a></h1>

<p>The BSD version of the <b>lock</b> command supports using an S/Key to lock the terminal.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <b>lock</b> was writtem by Aron Atkins,
<i>atkins@gweep.net</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright by Aron Atkins 1999.</p>

<p>This program is free and open software.
You may use,
copy,
modify,
distribute and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others to do the same.</p>

<!-- end doc -->

</body></html>