Ivelin Krastev
Ivelin Krastev

Reputation: 67

How to run my app with root privileges on macOS?

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

Answers (1)

James Hudson
James Hudson

Reputation: 51

It's not possible to access files without the correct file permissions for that user.

Upvotes: 2

Related Questions