Settings

Theme

My file access workaround for cron in Tahoe

14 points by noduerme 9 days ago · 3 comments · 2 min read


Suppose you want to access a folder in a cron job. Maybe it's on another drive, maybe it's a Dropbox folder. Oh no, you can't! Not allowed! It's not a permissions issue, it's the chain of custody for full disk access!

No problem you say, I'll go and give cron full disk access in this handy GUI full of system preferences with the nice ultra-round window corners. TL;DR, you can't give full disk access to cron. You can try, over and over, but it will not work. You can't give full disk access to lots of other extremely useful binaries that should be allowed to have it if you want them to. You can't even give it to sshd for the love of God. About all you can do is find the buried preference in General > Sharing > Remote Login > (info button) > "Allow Full Disk Access for Remote Users". Which, rather ironically, lets anyone who connects via SSH get full disk access.

Heheheh.

Tonight I fixed the inane system Apple created that prevents me from accessing my own machine with cron jobs: Change that setting, now just have your cron jobs ssh into localhost and everything works perfectly ;)

crawlwright 7 days ago

The real issue is FDA was designed for GUI apps and they never properly thought through how it applies to background processes.

Launchd with a properly configured plist is slightly less painful than cron for this reason, but you still hit walls depending on what you’re trying to access…

tacostakohashi 7 days ago

Looks like great progess has been made on the big tech project to uninvent files.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection