Linux 检查上次更改密码的时间

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11781144/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 14:00:09  来源:igfitidea点击:

Check when password was last changed

windowslinuxpasswordsadminmaintenance

提问by KlimczakM

How do I check when the password was last changed for some user? I would like to do it both on Windows and Linux, can you guide me a little how can I do that?

如何检查某些用户上次更改密码的时间?我想在 Windows 和 Linux 上都这样做,你能指导我一下我该怎么做吗?

采纳答案by Adi

In Linux:

在 Linux 中:

chage -l {username}

In Windows:

在 Windows 中:

net user {username} | find /I "Password last set"

In Windows (user part of a domain):

在 Windows 中(域的用户部分):

net user {username} /DOMAIN | find /I "Password last set"

回答by Nick

*nix

*尼克斯

Check out the command chageor getprpw

查看命令chagegetprpw

Windows

视窗

net user UserNamehas the information in it

net user UserName里面有信息

回答by Erik Gump

net user UserName /DOMAIN | find /I "Password last set"

net user 用户名 /DOMAIN | find /I“密码最后设置”

This command is useful and was able to check my last password change date and time.

这个命令很有用,能够检查我上次更改密码的日期和时间。