OSX File Permission


#1

Hey guys, please, could someone point me into the right direction? Here’s the problem, I created my own installer, on Windows I just set it to ask for Administrator rights and it them can save the plugins anywhere. On OSX the story is different, I couldn’t find an EASY way to put files into folders when they don’t have the right permissions. Not only that, but I can’t open the folder for reading after it is saved, so that’s another problem.

Resuming:

A) how to elevate file privileges on OSX so that I can save plugin files (.vst, .vst3, .components) into any folder

B) how can I read data files (such as skin files) from a folder that requires elevated rights?

Thank you for any advice.

Cheers, WilliamK


#2

For a) this might help : https://github.com/michaelvobrien/OSXSimpleAuth/wiki
For b) to avoid having the user enter their password every time your app runs, you’ll need to get the file (and parent folder) permissions right so that anyone can read.


#3

Oh yeah, thank you. :slight_smile:


#4

This helped me when I created my own installer:

https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/AccessControl.html

Rail