.
[ ]   [ ]  [ ȥå | | ñ측 | ǿ | Хåå | إ ]


// author:1
***Swatchѥ롼뵭 :)

ѥޥåν򲼵˵ҤޤͲ

ҽ
&font(b){ҽ};
watchfor /ѥ/
1
2

/ѥ/ /var/log/ ΥƤ򵭽ҤޤǵҤ~
ѥˤPerlɽѤ뤳ȤǤޤ


[N] ˤϥѥޥåν򵭽ҤޤǤϻꤵ줿ɥ쥹Ф᡼Ȥ򵭽Ҥޤ

[[Ϣȡѥ󤪤ӥ󵭽ҥ롼:http://www.atmarkit.co.jp/flinux/rensai/root04/root04b.html]]
(vi /root/.swatchrc)

&font(b){ (vi /root/.swatchrcԽ)};
/var/log/messages ΥФѥޥå뵭
ǤŪˤϤ¾ΥǤȤޤ魯ȤǽȻפޤ

# Personal Swatch configuration file
#
# Alert me of bad login attempts and find out who is on that system
#watchfor /INVALID|REPEATED|INCOMPLETE/
# Important program errors
#login
watchfor /login.*session opened|LOGIN ON/i
mail=swatch,subject=TELNET_Session_Opend_Log (user)

watchfor /su(pam_unix)|session opened for user root/i
mail=swatch,subject=TELNET_Session_Opend_Log (root)

watchfor /login.*FAILED LOGIN|authentication failure/i
mail=swatch,subject=LOGIN_Failed_Log (user)

watchfor /su.*authentication failure/i
mail=swatch,subject=LOGIN_Failed_Log (root)
#ftp
watchfor /ftp.*session opened/i
mail=swatch,subject=FTP_Session_Opend_Log
#ssh
watchfor /sshd.*session opened/i
mail=swatch,subject=SSH_Session_Opend_Log

嵭ιʹߤǴ(swatch桼)˥᡼ۿԤȤǤޤ

  ʬ եź źեե   Wikiȥå ǽ Хåå   إ   ǽRSS
Expert Menu
ǿ
2018-1-18 2016-7-19 2016-5-31 2016-4-12 2016-4-5 2016-3-28 2016-3-10 2015-8-7
ʤ
Yahoo Japan
̤
ͧͤʹ
URLΤäƤ
¾Ȥ
ǿСγǧ

Linuxexpert is one of the service presented by InfomationSquare. / OmakaseBlog Login  |  Register Now!