As a root I ran an initial rsync for one of my user and now when I put that rsync in his cpanel's crontab. It gibes permission denied errors for some of the files. How can I fix this?
As a root I ran an initial rsync for one of my user and now when I put that rsync in his cpanel's crontab. It gibes permission denied errors for some of the files. How can I fix this?
If you have placed the command under the users cronjob, it will give you permission denied error if the files you are copying are owned by another user. The workaround is, execute the rsync command as root i.e. place the rsync command under the root's cronjob file
crontab -e