linux - Password expires 和 Account expires 和有什么不一样? chage -l 用户名命令的输出

标签 linux unix command user-management

<分区>

密码过期和帐户过期有什么区别? Linux 中“chage -l 用户名”命令的输出。在这两种情况下,帐户都会被锁定那么为什么会有两个不同的字段?

最佳答案

检查一下

https://security.stackexchange.com/questions/49684/difference-between-password-expiration-and-account-expiration

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/

相关文章:

c - GUI - Linux - C - 如何管理点击事件?

xml - 无法使用 wget 检索完整文件

bash - 比较不同文件中的两列并为共享项追加数据 - UNIX

java - 跳过从 PDF 读取的字节

linux - gdb 命令检查变量是否存在

linux - 每分钟写入另一个 tcpdump 文件

Python zipfile 不会解压缩 Windows zip 存档的文件夹

c - 从多个源文件构建内核模块,其中一个与模块同名

linux - 为什么信号没有被屏蔽?

unix - 您如何使用 uniq -c 选项进行自定义格式设置?