| | | | | 1.测试环境正确搭建并确认 [size=10.5000pt]2.操作系统正常运行 | | 1.查看密码有效期: cat /etc/login.defs |grep -v "#" |grep -v "^$" |grep PASS 2.修改密码有效期:sed -i 's/90/80/g' /etc/login.defs 3.创建用户并设置密码 | | 1.有效期默认配置如下 [root@localhost ~]# cat /etc/login.defs |grep -v "#" |grep -v "^$" |grep PASS PASS_MAX_DAYS 90 PASS_MIN_DAYS 0 PASS_MIN_LEN 5 PASS_WARN_AGE 7 2.修改成功,PASS_MAX_DAYS值修改为80 #cat /etc/login.defs |grep -v "#" |grep -v "^$" |grep PASS PASS_MAX_DAYS 80 PASS_MIN_DAYS 0 PASS_MIN_LEN 5 PASS_WARN_AGE 7 3.新创建的用户在73天后有密码过期提示信息,80天之后密码过期 | |
| | |
|
|
|
|
|
版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报