Permissions errors when using launchd to run rsync between local drive and afp network drive I am trying to sync a local directory to my NAS that is mounted via the afp protocol as a drive. I am using rsync. When I run the command from the terminal, it works fine. However, when I try to run it from launchd, it always fails.
This is my rsync command:
rsync -av --delete /Users/self/Pictures/ /Volumes/nas/Images

This is the plist file that contains the above command. It is located in ~/Library/LaunchAgents with user, groups, and permissions equal to the other (working) plists in that directory.
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;rsync_picture_to_nas&lt;/string&gt;

    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;rsync&lt;/string&gt;
        &lt;string&gt;-av&lt;/string&gt;
        &lt;string&gt;--delete&lt;/string&gt;
        &lt;string&gt;/Users/self/Pictures/&lt;/string&gt;
        &lt;string&gt;/Volumes/nas/Images&lt;/string&gt;
    &lt;/array&gt;

    &lt;key&gt;StandardErrorPath&lt;/key&gt;
    &lt;string&gt;/Users/self/.log/rsync_picture_to_nas_err.log&lt;/string&gt;

    &lt;key&gt;StandardOutPath&lt;/key&gt;
    &lt;string&gt;/Users/self/.log/rsync_picture_to_nas_out.log&lt;/string&gt;

    &lt;key&gt;WatchPaths&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;/Users/self/Pictures&lt;/string&gt;
    &lt;/array&gt;
&lt;/dict&gt;
&lt;/plist&gt;

It always has complete permissions failure. The exact permissions errors will depend on whether I am running it from scratch or have previously run it successfully from the command line. Suffice to say, it is totally incapable of doing anything. It can't create or modify any files on the NAS at all.
Here is a sample error:
rsync: recv_generator: mkdir &quot;/Volumes/nas/Images/Lightroom Library.lrlibrary&quot; failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
I figured out the problem. It is Apple's new permissions system. I had to give rsync full disk access under System Preferences &gt; Security and Privacy &gt; Full Disk Access &gt; +. If you can't find rsync, crack open a terminal and do which rsync. It is probably at /usr/bin/rsync.