Posted on 01-06-2019 11:53 PM
I am creating a command line application that does not by default require any raised privilege, but because of other security reasons, I would like the user to be required to raise their privilege anyway so that it is at least locked behind sudo.
Does anyone have any experience with this? My web search for answers did not yield any results concerning forcing sudo for access.
Posted on 01-07-2019 05:22 AM
I would imagine adding some code in it that creates a blank file in a protected (not by SIP) folder should force the user running it to run as admin (sudo). something like touch /Library/foo