Check last successful/failed login user on Linux
1、查看当前系统的登录用户
w
who
2、查看成功登录历史记录
last -n
3、查看尝试登录失败的历史记录
lastb -n
4、显示每个用户的登陆信息
lastlog
utmpdump /var/log/wtmp
who /var/log/wtmp
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here