Permission denied error on accessing OneDrive file from a process on MacOS

576 views Asked by At

On Mac with a process started with /bin/launchctl load -w /Library/LaunchDaemons/ex.plist tries to open the offline OneDrive file ( Open - c system call ). It returns errno 13 ( Permission denied error ). Process or app directly started without launchctl can open the file ( On open file will get automatically downloaded ).
Why cant process launched from launchctl cannot open the file ? Is there any configuration available to make it happen on OneDrive or in plist file Or OneDrive explicitly dont allow such process to open the file ?

0

There are 0 answers