用户锁定 [root@l01 ~]# passwd -l pispread Locking password for user pispread. passwd: Success 查看用户 [root@l01 ~]# passwd -S pispread pispread LK 2020-04-30 7 99999 15 -1 (Password locked.) 用户解锁 [root@l01 ~]# passwd -u pispread Unlocking password for user pispread. passwd: Success 查看用户 [root@l01 ~]# passwd -S pispread pispread PS 2020-04-30 7 99999 15 -1 (Password set, SHA512 crypt.) 远程登录解锁 方法一: 控制台使用root用户登陆后执行: pam_tally2 --user=username --reset 方法二: usermod -U