Using AuthorizationShell in macoslib with rsync

For rsync I use an applescript for shell authorization and then sudo for the rsync shell command

you can see details in my Project, maybe it can be helpful

FolderSyncProject

Thanks, Axel. I’ll check that out in a few minutes.

Kem, I was able to rsync from FAT-32 and locked files and folders without sudo with no problem. It looks like the issue that makes it require sudo is that the source volume is read-only. I haven’t quite been able to figure out how to make a read-only FAT-32 partition or disk image to test it yet, but that’s the difference that stands out to me. Unfortunately, it’s something I have no control over.

What are the permissions on that disk?

Hmm. Xojo reports them as 511, which is
User: read and execute
Group: execute
Others: execute

Using ls in the terminal, I get drwxrwxrwx@, which contradicts that.

And highlighting the drive and doing “Get Info” in Finder, it says “You can only read,” with no option to look at permissions.

[quote=71291:@Axel Schneider]For rsync I use an applescript for shell authorization and then sudo for the rsync shell command

you can see details in my Project, maybe it can be helpful

FolderSyncProject[/quote]
@Axel Schneider Could you post that rsync applescript again please? That would be awesome buddy if you could. Thanks!

here it is

FolderSync

Thanks Axel!

Axel do you have this in any MAS apps by chance? (The apple script that is)

Thanks

If you’re trying to use an elevated privilege in the MAS, you’ll get rejected.