Linuxは今私にスパムを送っています(anacron)。

Linuxは今私にスパムを送っています(anacron)。

約1年前から、Linux Debianは私に次のスパムメールを送信しました。

Subject: Anacron job 'cron.daily' on mymachine
Content-Type: text/plain; charset=UTF-8
Date: Mon,  3 Apr 2017 07:35:04 -0400 (EDT)

/etc/cron.daily/logrotate:
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apt
reading config file aptitude
reading config file consolekit
reading config file dpkg
reading config file exim4-base
reading config file exim4-paniclog
reading config file firebird2.5
reading config file iptraf
reading config file mumble-server
reading config file pm-utils
reading config file ppp
reading config file rsyslog
reading config file samba
reading config file speech-dispatcher
reading config file unattended-upgrades
reading config file winbind

Handling 23 logs

rotating pattern: /var/log/apt/term.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/term.log
  log does not need rotating

rotating pattern: /var/log/apt/history.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apt/history.log
  log does not need rotating

rotating pattern: /var/log/aptitude  monthly (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/aptitude
  log does not need rotating

rotating pattern: /var/log/ConsoleKit/history  monthly (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ConsoleKit/history
  log does not need rotating

rotating pattern: /var/log/dpkg.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dpkg.log
  log does not need rotating

rotating pattern: /var/log/alternatives.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/alternatives.log

(1)単一設定でこれを防ぐ方法はありますか?それとも、各スパムタイプの動機を個別に見つけて個別に解決する必要がありますか?

(2)この問題を一度に1つのスパムメールで解決する必要がある場合は、上に貼り付けたアナクロン問題をどのように処理する必要がありますか?

(3) なぜ今こんなことが起こるのか?私のDebianコンピュータは少なくとも6年で、約1年前からスパムを受信し始めました。

ベストアンサー1

rootとしてログインして実行すると

/usr/sbin/logrotate -v /etc/logrotate.conf

画面にこの出力が表示されます。問題は-v削除する必要があるということです。-vここには次のものがあります。

$ grep -r logrotate /etc/cron*

出力例:

/etc/cron.daily/logrotate:test -x /usr/sbin/logrotate || exit 0
/etc/cron.daily/logrotate:/usr/sbin/logrotate -v /etc/logrotate.conf

いくつかの出力が得られると、デフォルトではcronユーザーにメールで送信されますroot

おすすめ記事