Linux lastb命令的使用
lastb命令显示登录失败记录
LInux version:
cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
首次运行lastb命令会报下的错误
lastb: /var/log/btmp: No such file or directory
Perhaps this file was removed by the operator to prevent logging lastb info.
只需建立这个不存在的文件即可
touch /var/log/btmp
使用ssh的登录失败不会记录在btmp文件中
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-1089148/
,如需转载,请注明出处,否则将追究法律责任。