Crontab job report operation not permitted error on mac
When I try to run a command to parse file on a usb disk, the command can run successfully from terminal, but the crontab job always failed…
When I try to run a command to parse file on a usb disk, the command can run successfully from terminal, but the crontab job always failed when the application try to read file on the USB disk, the error is operation not permitted
, after search on the network, and the answer is we need to grant Full Disk Access
to cron
application. But this permission need to grant on the desktop, I try to find a tool can grant permission from terminal, but failed.
I also try to run the crontab job with root
account, but same error reported.
After I grant the cron
the Full Disk Access
permission, and the crontab job can start if I wait on terminal, but after I disconnect the connection, I find the job does not start, after search the internet, and I find that I should add Terminal.app
the Full Disk Access
.