I would like to know if there is any way for Java to prompt the user for the administrative password, like what they would use with sudo, so that I can run commands in the Java program without having to do weird stuff with the system or Sudoers. I have seen in done in Python, ie with the program gufw, and I would like to be able to do it with Java.
Asked
Active
Viewed 95 times
1
-
duplicate?? http://stackoverflow.com/questions/5168755/execute-a-linux-shell-command-with-sudo-using-java-without-entering-the-requi – Varvarigos Emmanouil Jun 25 '13 at 20:23