一个面试的问题,请教一下。
昨天面试被问到一个问题,linux或者bsd下,我想查询用户最后一次修改密码的时间,该如何操作。
想破头也没想出来? -S, --status Display account status information. The status information consists of 7 fields. The first field is the user's login name. The second field indicates if the user account has a locked password (L), has no password (NP), or has a usable password (P). The third field gives the date of the last password change. The next four fields are the minimum age, maximum age, warning period, and inactivity period for the password. These ages are expressed in days. linux是什么情况呢 BSD中有last,linux中有没有?应该也有吧。 找了个centos,linux中也有last 回复 2# shijiang1130
你这个是passwd的man吗?FreeBSD下的passwd没有这个参数。
last本来就是unix的,linux也有 passwd -S或 last 显示的信息不一样啊
last是显示最后的几条命令行操作信息
页:
[1]