Run cron job as root

Discussion in 'General' started by wojtekgoral, Jul 26, 2019.

  1. wojtekgoral

    wojtekgoral New Member

    I defined cron job in ispconfig, but it cannot be executed due to permissions. Is there any way to run the command as root ?
    The command is:
    /usr/sbin/backup-manager -c /backup/skrypty/backup-manager-sql.conf

    In etc/cron.d/ispc_web20 there is a command:

    40 12 * * * web20 /usr/sbin/backup-manager -c /backup/skrypty/backup-manager-sql.conf
    It runs without a problem when I change manualy web20 to root
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Put the command in root crontab.

Share This Page