Run a Java program as non-root user with port 80

sudo setcap 'cap_net_bind_service=+ep' /path/to/your/jdk1.0.0_000/bin/java
sudo echo /path/to/your/jdk0.0.0_000/lib/amd64/jli/ >> /etc/ld.so.conf

Be aware, the program runs with extendes priviliges. This can lead to greater consequences as without these priviliges.

Source stachexchange.com 

Leave a Comment

comments powered by Disqus