Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Using Jetty SetUID feature programmatically

The setuid code is maintained at https://github.com/eclipse/jetty.toolchain/tree/master/jetty-setuid

Perhaps the test case can help you understand it's usage in an embedded sense.
https://github.com/eclipse/jetty.toolchain/blob/master/jetty-setuid/jetty-setuid-test/src/test/java/org/eclipse/jetty/setuid/TestSetuid.java

Joakim Erdfelt / joakim@xxxxxxxxxxx


On Tue, Feb 1, 2022 at 12:54 AM Srijith Kochunni <Srijith.Kochunni@xxxxxxxxxxxxxx> wrote:

Hi,

 

        I am trying to run a small java runtime which contains an embedded jetty Server. I am trying to run this on a Linux Server and want to run it as a non-root user for security reasons. I would however like to bind to privileged ports like 80 / 443. However I keep getting a Permission Denied exception. I have tried using jsvc to start up the process, but still the bind is failing. I have gone through the jetty 9 documentation https://www.eclipse.org/jetty/documentation/jetty-9/index.html#jetty-admin-guide and I see we have a setuid feature which can be used for this purpose. However it is not clear as to how I can set this configuration programmatically.

 

        Is there any reference for the same or examples that can be referred to.?

 

Thanks,

Srijith.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top