Linux用户锁定、解锁及锁定查看

 Linux用户锁定、解锁及锁定查看

 
[root@l01 ~]# passwd -S pispread
pispread PS 2020-04-30 7 99999 15 -1 (Password set, SHA512 crypt.)

用户锁定 [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.)
 

 

Linux用户锁定、解锁及锁定查看

上一篇:Linux系统入门学习:如何修复“sshd error: could not load host key”


下一篇:shell 中的$0 $1 $* $@ $# $$ $? $() $(())