Reputation: 67
I am working on a simple C/C++ project in which I have to collect a bunch of files from a bunch of macOS specific directories. But some directories/files require root access. I know that I can open it from the terminal. But I want to know if there is a way to elevate to root when the app starts.
Upvotes: 0
Views: 752
Reputation: 51
It's not possible to access files without the correct file permissions for that user.
Upvotes: 2