Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
See… – sergio91pt Sep 23 '11 at 17:27
That's what I needed to see, thanks sergio91pt, can you post that as an answer so I can close this off? – David Parks Sep 23 '11 at 20:18
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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