I have typed for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done And that say
no crontab for root no crontab for daemon ... no crontab for apache2 and i got very often You have new mail in /var/mail/root message
when i read there are all the same
From [email protected] Wed Aug 2 15:40:02 2017 Return-Path: <[email protected]> X-Original-To: root Delivered-To: [email protected] Received: by lxc2014.localdomain (Postfix, from userid 0) id 03E571D666; Wed, 2 Aug 2017 15:40:02 +0000 (UTC) From: [email protected] (Cron Daemon) To: [email protected] Subject: Cron <root@lxc2014> /dev/.x;^Mno crontab for root MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <[email protected]> Date: Wed, 2 Aug 2017 15:40:02 +0000 (UTC) /bin/sh: 1: ^Mno: not found I know that ^M is \r brut why cron search this file...
grep "no crontab" /etc/crontab /etc/cron*/* | cat -vetshow anything?grep "no crontab" /etc/crontab /etc/cron*/* | cat -vetshow nothinggrep -F -r /dev/.x /etc /var/spool/cron | cat -vet? I've never seen/dev/.xbefore. It may be a legitimate executable used to maintain/dev, or it may be suspicious.crontab -u root -r. That crontab entry was either a typo or malicious software (or both).