The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

shift rsync owners

Discussion in 'General Discussion' started by desiguru, Mar 31, 2010.

  1. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    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

     
Loading...

Share This Page