linux 如何查看密码状态是否锁定
发布网友
发布时间:2022-04-20 22:50
我来回答
共1个回答
热心网友
时间:2023-06-20 00:53
灞曞紑鍏ㄩ儴鎸囦护涓猴細passwd -S <鐢ㄦ埛鍚?gt;
[root@tozhw_gateway etc]# passwd -S tools
tools PS 2011-10-24 0 99999 7 -1 (Password set, MD5 crypt.)
[root@tozhw_gateway etc]# passwd -S root
root PS 2012-04-16 0 99999 7 -1 (Password set, MD5 crypt.)
[root@tozhw_gateway etc]# passwd -S mysql
mysql LK 2011-10-24 0 99999 7 -1 (Password locked.)
[root@tozhw_gateway etc]# passwd -S rpcuser
rpcuser LK 2011-10-24 0 99999 7 -1 (Password locked.)