• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Cron Daemon Messages: Root not found

repa

New Pleskian
Hi,

since today i get the follwoing e-mails every 15 minutes:

Cron <root@xyz> root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

/bin/sh: 1: root: not found

and
Cron <root@xyt> root [ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1
/bin/sh: 1: root: not found

Anyone get the same errors?
 
Check your cron syntax. If you are making changes in a local cron file using crontab -e, the job entry should contain 6 fields (not the username) like this:

* * * * * /home/command.sh

A wrong entry like this:

* * * * * root /home/command.sh

would cause cron to interpret "root" as a command.

The syntax "* * * * * root /home/command.sh" is valid for system crontab file /etc/crontab.
 
Hi Igor,

we have not made any modification to cron on this machine!

the cron looks like this:

cat plesk-backup-manager
8,23,38,53 * * * * /opt/psa/admin/sbin/backupmng && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1

cat php5
# /etc/cron.d/php5: crontab fragment for php5
# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime

# Look for and purge old sessions every 30 minutes
09,39 * * * * /usr/lib/php5/maxlifetime && -d /var/lib/php5 && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
 
Any hint? More Jobs are coming every day, very strange!

Cron <root@xyz> list [ -x /usr/lib/mailman/cron/disabled ] && /usr/lib/mailman/cron/disabled
/bin/sh: 1: list: not found
 
Back
Top