+1 vote
in General IT Tips by (60.2k points)

I created a new cron job to run "rsunc" for backup. When the new cron job executes, it fails with the following error: 

sudo: /usr/local/vesta/bin/x-user-rsync-job1: command not found

How can I fix this error to run the new cron job? 

1 Answer

+3 votes
by (355k points)
selected by
 
Best answer

Most likely, you are getting the error due to the permission issue. You need to change the permission for the new cron job.

Log in as the root and run the following command to change the access permissions to 755. It should fix the error.

chmod 755 /usr/local/vesta/bin/x-user-rsync-job1


...