标签:相关信息 mini 有效期 roo read 案例 分享 实现 use
一、groupadd --create a new group 创建新用户
二、groupdel --delete a group
三、passwd --update user‘s authentication tokens 更改用户密码
This option is used to indicate that passwd should read the new
password from standard input, which can be a pipe. 示例:
-n This will set the minimum password lifetime, in days, if the
user’s account supports password lifetimes. Available to root
only. 规定多少天内不能修改密码
-x This will set the maximum password lifetime, in days, if the
user’s account supports password lifetimes. Available to root
only.规定多少天之后必须修改密码及密码过期时间=当前时间+x
-w This will set the number of days in advance the user will begin
receiving warnings that her password will expire, if the user’s
account supports password lifetimes. Available to root only. --过期w天之前提醒
-i This will set the number of days which will pass before an
expired password for this account will be taken to mean that the
account is inactive and should be disabled, if the user’s
account supports password lifetimes. Available to root only.--密码失效时间即密码过期之后i天失效
[root@gaogzhen ~]# passwd -n 7 -x 60 -w 7 -i 10 test01
四、chage --change user password expiry information 修改用户密码有效期
标签:相关信息 mini 有效期 roo read 案例 分享 实现 use
原文地址:https://www.cnblogs.com/gaogzhen/p/10014963.html