I'm a Java developer writing a web app (Jetty server).

Are there any guides out there are how I might downgrade user permissions using Java?

Most native Linux apps will start as root, open root-only ports like 80/443, then downgrade themselves to a non root user (through a process which I'm not familiar with).

I'd like to be able to do the same in a Java environment.


On ServerFault theres a similar question with a bunch of different solutions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.