I upgraded my laptop to Mojave. For years, my backup strategy has included using rsync (MacPorts rsync 3.1.3) to copy files to a file server. This stopped working properly, now showing some errors indicating permission problems with opendir and get_xattr_data, specifically with certain ~/Library folders.
I use launchd to run rsync inside a script located in /usr/local/bin.
As part of my troubleshooting, I went into Terminal and su'd to root. Then cd'd to my user's ~/Library and tested access in some of the folders. The system reported permission denied.
Through Security & Privacy, I gave rsync Full Disk Access, but that didn't resolve the issue.
I'm assuming this is an issue resulting from Mojave's security or privacy settings as I've never seen root not have permission to files. In order to resume my backup processes, I need root/launchctl to be able to access files.
What has changed in Mojave that is limiting root's access?
How do I mitigate this limitation as it relates to rsync?
The possible duplicate seems to confirm the need to adjust settings in Security & Privacy, but so far adding Terminal and rsync to the list of allowed apps does not allow the backup to succeed. I'm working to add the script I use to run the backup, and will adjust my question when I get that tested.
rootpermission, it doesn't address thersync(which is run from a script) part of the issue. I'm trying to figure out how to add a custom script to the Security & Privacy settings. – tim.rohrer Oct 09 '18 at 02:40/sbin/launchdin a Finder window and then drag that file to the add application dialog in Sys prefs. – user7886229 Oct 09 '18 at 02:48launchdand while that seems to be givingrsyncaccess, the--dry-runappears to be wanting to delete all the contents of~/Library/Mailso more testing is going to be needed. I've got to head out of town tomorrow for a couple days, so I'll need to pick this up when I return. – tim.rohrer Oct 09 '18 at 04:40