[root@ecs-centos-7wl]# chage -hUsage: chage [options]LOGINOptions: -d, --lastdayLAST_DAYset dateoflast password change toLAST_DAY-E, --expiredateEXPIRE_DATEset account expiration date toEXPIRE_DATE-h, --help displaythishelp message and exit -I, --inactiveINACTIVEset password inactive af...
### 基础概念 在Linux系统中,用户的账户有一个过期日期(expiration date),当这个日期到达时,系统会自动禁用该用户账户。设置用户永不过期意味着将用户的过期日期设置为一个非常遥远...
-d, --lastday LAST_DAY set date of last password change to LAST_DAY -E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -h, --help display this help message and exit -I, --inactive INACTIVE set password inactive after expiration to INACTIVE -l, --list show accoun...
--warning=DAYS number of days warning users receives before password expiration(root only)-i, --inactive=DAYS number of days after password expiration when an account becomes disabled(root only)-S, --status report password status on the named account(root only)...
(root only) 注:两次密码修改的最小天数,后面接数字,仅能 root 权限操作; -w, --warning=DAYS number of days warning users receives before 注:在距多少天提醒用户修改密码;仅能 root 权限操作; password expiration (root only) -i, --inactive=DAYS number of days after password expiration when an ...
Password Expiration Qarning [-1];直接回车不变 Password Inactive [0];-1 修改 Last Password Change (YYYY-MM-DD) (2007-04-09);直接回车不变 Account Expiration Date (YYYY-MM-DD) (1970-01-01);2051-01-01 修改 然后使用user1登陆会提示密码过期修改密码,按照操作提示操作就可以了。
# line 25: set 60 for Password Expiration PASS_MAX_DAYS 60 1. 2. 3. 4)设置可用密码的最短天数。 至少在改变它之后,用户必须至少使用他们的密码。 此设置仅在创建用户时才会产生影响,而不会影响到现有用户。 如果设置为现有用户,请运行命令"chage -m(days)(user)" ...
-i, --inactive INACTIVE set password inactive after expiration to INACTIVE -l, --lock lock the password of the named account -n, --mindays MIN_DAYS set minimum number of days before password change to MIN_DAYS -q, --quiet quiet mode ...
Last metadata expiration check: 1:39:24 ago on Wed 20 Sep 2023 10:02:04 PM CST. Dependencies resolved. === Package Arch Version Repository Size ===
账户到期日期(Account Expiration Date):账户到期的日期,以从1970年1月1日起的天数表示。账户到期后,用户将无法登录系统。 保留字段(Reserved):通常留空,用于未来的扩展。 通过/etc/shadow文件,系统可以管理用户的密码策略,包括密码的修改、过期和锁定等。 三、密码复杂度设置 为了增强系统安全性,可以通过设置密码复杂...