Closed acheong08 closed 4 years ago
Is there a one-liner to prompt for these privileges?
sudo
You can’t elevate an existing process without kext, but you can relaunch your own process with extended privileges via AuthorizationExecuteWithPrivileges, but it’s deprecated and Apple advices for PrivilegedHelper instead. This project is open-source anyway, so I don’t really get your question.
I am working on a project for MacOS (not on GitHub) but can't figure out how to prompt for admin privileges.