I\'m designing a little software in Java. I don\'t know the term/definition to what I\'m doing, but I\'m prompting commands from Java to the terminal. Something like this:
One should use the native OS X authorization services instead of looking at sudo and/or a graphical interface to it.
Ref:
Introduction to Authorization Services Programming Guide (apple)
Authorization Services Tasks (apple)
[I know it's a late answer ...]
gksudo
is the GTK+ version of sudo
.
You can use this clone for it especially for OS X.
If you are using a terminal, then just use "sudo
" instead, which will prompt for the user's password in the terminal itself (as opposed to gksudo
which I believe uses a graphical popup). Sudo works on both Linux and OS X.