Linux 用户相关 pam

1
2
3
4
5
6
7
8
9
10
11
12
13
# redhat5
faillog -u username -r

# redhat6
pam_tally2 -u username -r

# HPUX

## 查看用户是否被锁定,返回除0000000,其他均为锁定
/usr/lbin/getprpw -l -m lockout username

## 解锁用户
/usr/lbin/modprpw -l -k username

Reference