lock(C) 19 June 1992 lock(C) Name lock - lock a user's terminal Syntax lock [ -v ] [ -number ] Description The lock command requests a password from the user, requests it again for verification, then locks the terminal until the password is reentered. If a -number is specified in the lock command, the terminal is automati- cally logged out and made available to another user after that number of minutes has passed. This command uses the file /etc/default/lock. This file has two entries: DEFLOGOUT = number MAXLOGOUT = number DEFLOGOUT specifies the default time in minutes that a terminal will remain locked before the user is logged out. This default value is over- ridden if the -number option is used on the command line. If DEFLOGOUT and -number are not specified, the MAXLOGOUT value is used. MAXLOGOUT is the maximum number of minutes a user is permitted to lock a terminal. If a user attempts to lock a terminal for longer than this time, lock will issue a warning to the user that it is using the system maximum time limit. If DEFLOGOUT and -number and MAXLOGOUT are not specified, users are not logged out. DEFLOGOUT and MAXLOGOUT are configured by the system administrator to reflect the demand for terminals at the site. The lock may be terminated by killing the lock process. Only the super user and the user who invoked lock may do so. Options -number Sets the time limit for lock to number of minutes, instead of the system default. -v Specifies verbose operation. File /etc/default/lock Notes The file /etc/default/lock is shipped with the following default values: DEFLOGOUT = 30 MAXLOGOUT = 60 Value added lock is an extension of AT&T System V provided by The Santa Cruz Opera- tion, Inc.