ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux lastb命令的使用

Linux lastb命令的使用

Linux操作系统 作者:season0891 时间:2014-02-25 17:31:35 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-06-10

  • 博文量
    790
  • 访问量
    2098017