Chinaunix

标题: a problem of passwd expire [打印本页]

作者: Nicole2006    时间: 2007-03-02 16:24
标题: a problem of passwd expire
今天远程登录linux系统时,还是用以往的用户名,当输入密码后,出现提示:

your passwd will expire in 0 days
是密码过期,那就改一下密码好了,修改后提示修改成功,但重新以该用户登录时,还是提示过期信息。于是借助于net,试了网上提供的以下操作,还是没有作用。   
chage -E days user 和 usermod -e daus user
最后, 查看shadow文件,对照shadow对应字段,发现是sp_max的值在作怪
chage -M days user
呵呵,ok了!!


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28736/showart_252239.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2