Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Port80"

< Jetty‎ | Howto
m
m
Line 5: Line 5:
  
 
== Using Jetty's setuid feature ==
 
== Using Jetty's setuid feature ==
 +
 +
{{note|Tip|The SetUID feature is among the Jetty 7 modules that remain at codehaus, and retains the mortbay.org package naming. It does use the Jetty 7 package modules at Eclipse. Jetty-hightide-7 at codehaus comes with jetty-setuid compiled for Jetty 7. Alternatively, you can check out the module itself at [http://svn.codehaus.org/jetty/jetty/branches/jetty-7/jetty-setuid/modules/ SetUID].
  
 
Create a Jetty config file as follows:
 
Create a Jetty config file as follows:
Line 11: Line 13:
 
<?xml version="1.0"?>
 
<?xml version="1.0"?>
 
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
 
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.setuid.SetUIDServer">
+
<Configure id="Server" class="org.mortbay.setuid.SetUIDServer">
 
   <Set name="umask">UMASK</Set>
 
   <Set name="umask">UMASK</Set>
 
   <Set name="uid">USERID</Set>
 
   <Set name="uid">USERID</Set>

Revision as of 17:29, 3 March 2011

{{Jetty Howto | introduction = On Unix based systems, port 80 is protected; typically only the superuser root can open it. For security reasons, it is not desirable to run the server as root. This page presents several options to access port 80 as a non root user.


Using Jetty's setuid feature

Note.png
Tip

Back to the top