[root@xuelinux test1]# passwd -l jack
锁定用户 jack 的密码 。
passwd: 操作成功
4、passwd -S 列出密码相关信息
[root@xuelinux test1]# passwd -S jack
jack LK 2016-10-12 0 99999 7 -1 (密码已被锁定。)
应用延伸:
pwck 检查用户账号完整性
[root@xuelinux test1]# pwck
user 'adm': directory '/var/adm' does not exist
user 'uucp': directory '/var/spool/uucp' does not exist
user 'gopher': directory '/var/gopher' does not exist
user 'ftp': directory '/var/ftp' does not exist
user 'saslauth': directory '/var/empty/saslauth' does not exist
user 'oprofile': directory '/home/oprofile' does not exist
user 'jack': directory '/home/jack' does not exist
pwck:无改变