Linux密码策略

Redhat/Fedora/CentOS 系列的linux 编辑/etc/pam.d/system-auth
修改remember=0

/etc/login.defs 的PASS_MAX_DAYS 99999 #密码的最大有效期, 99999:永久有效

修改用户密码
echo username:passwd | chpasswd
查看用户密码信息
chage -l username
修改密码时间
chage username

你可能感兴趣的:(Linux密码策略)