建议:
1. 可能是因为你设置的密码失效时间过短,可以修改login.defs配置文件;
2. 操作步骤如下:
2.1 输入命令:cd /etc,进入/etc目录;
2.2 输入命令: vi login.defs,显示信息如下:
# *REQUIRED*
# Directory where mailboxes reside, _or_ name of file, relative to the
# home directory. If you _do_ define both, MAIL_DIR takes precedence.
# QMAIL_DIR is for Qmail
#
#QMAIL_DIR Maildir
MAIL_DIR /var/spool/mail
#MAIL_FILE .mail
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
3. 你可以修改密码的到期时间,保存并退出应该就可以了;
4. 其他可能的原因。
取消
评论