Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

lock(1)

名称

lock - lock tty

用法概要

lock

描述

Lock access to the current tty until successful re-authentication, by the user account that owns the tty device.

The lock command uses pam(3PAM) for authentication and account management with the PAM service name of "lock". The PAM configuration policy, listed in either /etc/pam.conf or /etc/pam.d/lock, specifies the modules to be used for lock.

A lock screen audit record is written on startup. A success or fail unlock screen audit record is written depending on the outcome of the PAM authentication.

属性

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

另请参见

login(1), attributes(7)