I have a bash script on a Linux box that runs a Jar file. When logged in as a regular user I don\'t have permission to run the script, but it prints the following log:
By default, sudo will cleanup the environment of the spawned commands. Pass -E to keep it:
sudo
-E
sudo -E env
Compare to:
sudo env