How to set cronjob with non-root user?

前端 未结 3 2037
情深已故
情深已故 2021-01-05 06:24

Error : crontab: must be suid to work properly

I want to set cronjob in docker container with non-root user. Is it possible to set a cron without using sudo and wi

3条回答
  •  萌比男神i
    2021-01-05 07:12

    I solve it adding the name of the user we need to execute cron jobs in the file /etc/cron.allow. If this files does not exists you have to create it. More details about cron.allow file

提交回复
热议问题