Re: catalina full disk access

2022-01-26 Thread Ryan Schmidt
On Jan 26, 2022, at 08:24, Arno S. Hautala wrote:

> On 25 Jan 2022, at 12:39, paul wrote:
> 
>> /usr/sbin/cron
>> /opt/local/bin/bash
>> /opt/local/bin/rsnapshot
>> /opt/local/bin/rsync
>> /opt/local/bin/gcp 
>> all have full disk access in system preferences.

I'm not sure if this is it, I've only had a few months of experience with OS 
versions that have this "full disk access" thing, but it seems like if you 
authorize a binary to do something, and then update the binary (for example in 
this case with "sudo port upgrade outdated"), then the authorization goes away 
even though the binary is still listed as authorized in System Preferences. Can 
you try removing the item's authorization in System Preferences and then 
re-adding it?

> The behavior has also seen some changes under different OS versions. What are 
> you using?

Subject line says Catalina.



Re: catalina full disk access

2022-01-26 Thread Arno S. Hautala
This isn’t specific to MacPorts, but is a more general issue with recent 
versions of macOS and “Full Disk Access”.

What I’ve found is that any binaries you add to Full Disk Access won’t actually 
be authorized. Authorized applications seem to need a bundle identifier. The 
behavior has also seen some changes under different OS versions. What are you 
using?

In theory, you should be able to create a wrapper application with Platypus 
[1]. But, I couldn’t get Platypus to work and had to create a Menu Bar 
application. It may be that the binary needs to be found within the app bundle?

[1]: https://sveinbjorn.org/platypus

See also [2], which includes a number of links at the end, including [3], which 
does sound to have some working solutions.

[2]: 
https://n8henrie.com/2018/11/how-to-give-full-disk-access-to-a-binary-in-macos-mojave/
[3]: https://github.com/restic/restic/issues/2051

-- 
arno  s  hautala/-|   a...@alum.wpi.edu

pgp b2c9d448




> On 25 Jan 2022, at 12:39, macpo...@parvis.nl wrote:
> 
> from cron i run a bash job that runs a bash job that runs rsnapshot from an 
> external usb disk to another external usb disk. 
> gcp -al (called from rsnapshot) fails with operation not permitted.
> it runs fine from ssh from iterm on another mac.
> 
> /usr/sbin/cron
> /opt/local/bin/bash
> /opt/local/bin/rsnapshot
> /opt/local/bin/rsync
> /opt/local/bin/gcp 
> all have full disk access in system preferences.
> 
> what can i do?
> 
> thanks,
> paul.



catalina full disk access

2022-01-25 Thread macpo...@parvis.nl
from cron i run a bash job that runs a bash job that runs rsnapshot from an 
external usb disk to another external usb disk. 
gcp -al (called from rsnapshot) fails with operation not permitted.
it runs fine from ssh from iterm on another mac.

/usr/sbin/cron
/opt/local/bin/bash
/opt/local/bin/rsnapshot
/opt/local/bin/rsync
/opt/local/bin/gcp 
all have full disk access in system preferences.

what can i do?

thanks,
paul.