Java: run command as root by Runtime.getRuntime().exec() in Ubuntu
Hey :)
a few days ago I needed to run `/etc/init.d/networking restart` command by Runtime.getRuntime().exec() in Java EE web application. The first and easiest way that came to mind was sudo without password and……