So, it's a little unconventional, but I'm basically producing a Java App which I need to have access the /etc/hosts file.
This file obviously cannot be edited without root privs. The program is for parents so they can disable their kids from viewing certain sites. How can I make this root access happen?
I have read somewhere that I might be able to open the application as root inside of MacOSX's terminal line, but the reason I'm doing this program in Java is so I can distribute it to some of my close friends who are not computer savy, and they can easily run it.
Is there anyway I can request root privs at the beginning of the app?