"/var/log/btmp"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
5번째 줄: 5번째 줄:


<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# lastb -f /var/log/btmp
[root@zetawiki ~]# lastb -f /var/log/btmp
root    ssh:notty    123.45.67.89    Tue Aug  6 00:44 - 00:44  (00:00)     
root    ssh:notty    123.45.67.89    Tue Aug  6 00:44 - 00:44  (00:00)     
root    ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 23:41  (00:00)     
root    ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 23:41  (00:00)     
16번째 줄: 16번째 줄:


<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# last -f /var/log/btmp
[root@zetawiki ~]# last -f /var/log/btmp
root    ssh:notty    123.45.67.89    Tue Aug  6 00:44    gone - no logout  
root    ssh:notty    123.45.67.89    Tue Aug  6 00:44    gone - no logout  
root    ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 00:44 (42+01:03)   
root    ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 00:44 (42+01:03)   

2015년 2월 12일 (목) 00:05 판

1 개요

btmp
/var/log/btmp
  • 로그인 실패 기록을 담은 바이너리 로그 파일
[root@zetawiki ~]# lastb -f /var/log/btmp
root     ssh:notty    123.45.67.89     Tue Aug  6 00:44 - 00:44  (00:00)    
root     ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 23:41  (00:00)    
root     ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 23:41  (00:00) 
... (생략)
btmp begins Sat Jun 15 14:51:26 2013
→ lastb 명령어로 파일 내용을 볼 수 있다.
→ -f 옵션이 없어도 기본적으로 /var/log/btmp
[root@zetawiki ~]# last -f /var/log/btmp
root     ssh:notty    123.45.67.89     Tue Aug  6 00:44    gone - no logout 
root     ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 00:44 (42+01:03)  
root     ssh:notty    246.80.135.79    Mon Jun 24 23:41 - 23:41  (00:00)    
... (생략)
btmp begins Sat Jun 15 14:51:26 2013
→ last 명령어로도 볼 수 있으나, 별 의미는 없다 (...)

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}