Community
Participate
Working Groups
Build Identifier: jetty-distribution-7.2.2.v20101205.tar.gz It took me a while to have setuid working as explained in http://wiki.eclipse.org/Jetty/Howto/Port80#Using_Jetty.27s_setuid_feature . Note: on Linux you want to use 'service jetty' (alias bin/jetty.sh) and not use directly the command line. Basically, adding to start.ini the 'etc/jetty-setuid.xml' is not enough. You must add '--pre=etc/jetty-setuid.xml' to start.ini . Alternatively, you can add '--pre=etc/jetty-setuid.xml' to $JETTY_ARGS in /etc/default/jetty . Another option is to add in etc/jetty.conf the line '--pre=etc/jetty-setuid.xml' before '--pre=etc/jetty-logging.xml' . In this way the the Object with id 'Server' is created as an instance of org.mortbay.setuid.SetUIDServer before etc/jetty-logging.xml could instantiate it as an instance of org.eclipse.jetty.server.Server. I think this should be document. Reproducible: Always Steps to Reproduce: 1. Follow http://wiki.eclipse.org/Jetty/Howto/Port80#Using_Jetty.27s_setuid_feature 2. Place 'etc/jetty-setuid.xml' in start.ini 2. service jetty start Result: a. Jetty creates temporary folders as root b. Jetty switches to jetty user c. Jetty tries to write compiled JSP pages on the temporary folders but it ahs not the rights to do it.
I think you need to prepend etc/jetty-setuid.xml if you are editing start.ini. But we will update the doco.
(In reply to comment #1) > I think you need to prepend etc/jetty-setuid.xml if you are editing start.ini. > > But we will update the doco. (In reply to comment #1) > I think you need to prepend etc/jetty-setuid.xml if you are editing start.ini. > > But we will update the doco. Hi Greg, I don't know what to do with this: "Note: on Linux you want to use 'service jetty' (alias bin/jetty.sh) and not use directly the command line." or where in start.ini to put this (although I did take a stab at it): --pre=etc/jetty-setuid.xml or what to do with this: "I think you need to prepend etc/jetty-setuid.xml if you are editing start.ini." Other than that, there's a decent doc to review at http://wiki.eclipse.org/Jetty/Howto/Port80 Thanks, sb
generally we should be driving people towards modifying the start.ini file and rejiggering the order to the xml files at the bottom there... but I'll close this for now since the docs do exist