当前位置: 技术问答>linux和unix
怎么是unix 里用户用不过期?
来源: 互联网 发布时间:2017-02-01
本文导语: 怎么是unix 里用户用不过期?大家给个建议 | linux 中/etc/shadow 文件中有个account expiration date 字段 The date of expiration of the account, expressed as the number of days since Jan 1,...
怎么是unix 里用户用不过期?大家给个建议
|
linux 中/etc/shadow 文件中有个account expiration date 字段
不知道你需要的是不是这个!
The date of expiration of the account, expressed as the number of
days since Jan 1, 1970.
Note that an account expiration differs from a password expiration.
In case of an acount expiration, the user shall not be allowed to
login. In case of a password expiration, the user is not allowed to
login using her password.
An empty field means that the account will never expire.
The value 0 should not be used as it is interpreted as either an
account with no expiration, or as an expiration on Jan 1, 1970.
不知道你需要的是不是这个!