I am trying to write an app that will edit a file that is stored in
/private/etc/hosts
Normally, from the Terminal, I must use sudo
to write to this file, so I should think I need elevated permissions in my cocoa app.
I was hoping to ask for it once, and then somehow store the permission so I don't need to ask again. I am a little lost about where to start.