*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> lock (1)              
Title
Content
Arch
Section
 

LOCK(1)

Contents


NAME    [Toc]    [Back]

     lock -- reserve a terminal

SYNOPSIS    [Toc]    [Back]

     lock [-npv] [-t timeout]

DESCRIPTION    [Toc]    [Back]

     The lock utility 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.

     The following options are available:

     -n      Don't use a timeout value.  Terminal will be locked forever.

     -p      A password is not requested, instead the user's current login
	     password is used.

     -t timeout
	     The time limit (default 15 minutes) is changed to timeout minutes.


     -v      Disable switching virtual terminals while this terminal is
	     locked.  This option is implemented in a way similar to the -S
	     option of vidcontrol(1), and thus has the same restrictions.  It
	     is only available if the terminal in question is a syscons(4)
	     virtual terminal.

SEE ALSO    [Toc]    [Back]

      
      
     vidcontrol(1), syscons(4)

HISTORY    [Toc]    [Back]

     The lock command appeared in 3.0BSD.


FreeBSD 5.2.1			 July 10, 2002			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
dma32_pool_size HP-UX the amount of memory to reserve for the 32-bit DMA pool
st_ats_enabled HP-UX determines whether to reserve a tape device on open
glgenasyncmarkerssgix IRIX reserve markers for tracking asynchronous commands
grio_action_list IRIX atomically execute a list of bandwidth reserve/unreserve actions
eqmemsize HP-UX determines the minimum size (in pages) of the equivalently mapped reserve pool
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
ct HP-UX spawn getty to a remote terminal (call terminal)
ttyname Tru64 Get the name of a terminal
ttyname_r Tru64 Get the name of a terminal
tty IRIX get the name of the terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service