CONTENTS
Lastmodified 2024-02-09 (金) 17:52:33
【参考URL】https://bellett.moe.hm/index.php/2018/06/26/freebsd-11-install-logcheck/
portupgrade -ar --batch をした後から、一時間に1回程度の割合で以下の様なメールが着信するようになった。
From: Cron Daemon <logcheck@sun1.smb.net> To: root@sun1.smb.net Subject: Cron <logcheck@sun1> if [ -x /usr/local/sbin/logcheck ]; then nice -n10 /usr/local/sbin/logcheck; fi ls: /usr/local/etc/logcheck/cracking.d: Permission denied ls: /usr/local/etc/logcheck/violations.d: Permission denied ls: /usr/local/etc/logcheck/violations.ignore.d: Permission denied ls: /usr/local/etc/logcheck/ignore.d.server: Permission denied ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permission denied
コンソールからコマンドを打つと
# root@sun1:/var/log:21_08_18:9:50 # su -m logcheck -c "/usr/local/bin/bash /usr/local/sbin/logcheck" ls: /usr/local/etc/logcheck/cracking.d: Permission denied ls: /usr/local/etc/logcheck/violations.d: Permission denied ls: /usr/local/etc/logcheck/violations.ignore.d: Permission denied ls: /usr/local/etc/logcheck/ignore.d.server: Permission denied ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permission denied
と表示される。
ので、
# chown -R root:logcheck /usr/local/etc/logcheck
した。 毎時のpermission エラー は抑制されるが、さらに
# chown root:logcheck /var/log/auth.log
Total access 1421:本日 1:昨日 0