<分区>
密码过期和帐户过期有什么区别? Linux 中“chage -l 用户名”命令的输出。在这两种情况下,帐户都会被锁定那么为什么会有两个不同的字段?
<分区>
密码过期和帐户过期有什么区别? Linux 中“chage -l 用户名”命令的输出。在这两种情况下,帐户都会被锁定那么为什么会有两个不同的字段?
最佳答案
检查一下
I think password expiration and account expiration are two differents means to achieve the same goal, that is to prevent someone to log in. However, they are used in different context and for different needs.
Password expiration is used when you want to force someone to renew their password at a specific interval (maybe 90 days) but you want the account to stay enabled. The user will be prompted to change his password and the next logon.
Account expiration should be used in another context. For example if you hire a contractor for 6 months and you want the account to be disabled at the end of the contract, you can set an account expiration at a fixed date and you won't have to be concerned about removing access to this contractor when the contract is finished since the account will be automatically disabled.
关于linux - Password expires 和 Account expires 和有什么不一样? chage -l 用户名命令的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28337016/