Hello,

You should install the package libjetty-extra, it contains libsetuid.so
which will help you to give Jetty the priviledge to use a port under
1024. You will need to configure jetty-setuid.xml, in particular set the
startServerAsPrivileged property to true.

Ludovic

On 12/04/2011 10:54, Andreas Åkesson wrote:
> I'm having the same problems on jetty 6.1.24-6. Is there any system
> configs i can/should alter to make this work?
> 
>  
> 
> /etc/default/jetty
> 
> NO_START=0
> 
> VERBOSE=yes
> 
> #JETTY_USER=jetty
> 
> JETTY_USER=root
> 
> JETTY_HOST=0.0.0.0
> 
> JETTY_PORT=80
> 
>  
> 
> jetty-setuid.xml:
> 
> <Configure id="Server" class="org.mortbay.setuid.SetUIDServer">
> 
>   <Set name="startServerAsPrivileged">false</Set>
> 
>   <Set name="umask">2</Set>
> 
>   <Set name="uid">104</Set>
> 
>   <Set name="gid">107</Set>
> 
>  
> 
> jetty:conf:
> 
> # list of jetty configuration and property files
> 
> /etc/jetty/jetty-setuid.xml
> 
> /etc/jetty/jetty-logging.xml
> 
> /etc/jetty/jetty.xml
> 
> /etc/jetty/jetty-ssl.xml
> 
> /etc/jetty/jetty-shared-webapps.xml
> 
>  
> 
> log:
> 
> 245 [main] INFO org.mortbay.log - Setting umask=02
> 
> 246 [main] INFO org.mortbay.log - jetty-6.1.24
> 
> 281 [main] INFO org.mortbay.log - Deploy /etc/jetty/contexts/javadoc.xml
> -> org.mortbay.jetty.handler.ContextHand$
> 
> 393 [main] INFO org.mortbay.log - Opened
> /var/log/jetty/2011_04_12.request.log
> 
> 407 [main] WARN org.mortbay.log - failed
> SelectChannelConnector@0.0.0.0:80: java.net.SocketException: Permission $
> 
> 427 [main] WARN org.mortbay.log - failed SslSocketConnector@0.0.0.0:443:
> java.net.BindException: Permission denied
> 
> 427 [main] WARN org.mortbay.log - failed SetUIDServer@3a56860b:
> org.mortbay.util.MultiException[java.net.SocketEx$
> 
> 427 [main] WARN org.mortbay.log - EXCEPTION
> 
> org.mortbay.util.MultiException[java.net.SocketException: Permission
> denied, java.net.BindException: Permission d$
> 
>         at org.mortbay.jetty.Server.doStart(Server.java:188)
> 
> ...
> 
>  
> 
> Best regards,
> 
> Andreas
> 
> 
> 
> __
> This is the maintainer address of Debian's Java team
> <http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. 
> Please use
> debian-j...@lists.debian.org for discussions and questions.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to