Hi, With the standard tarball distribution of hightide, setuid binaries (.so and .jar) in $JETTY_HOME/lib/setuid and the config file for it is in $JETTY_HOME/etc/jetty-setuid.xml.
You edit your start.ini and do: * uncomment --exec * add -Djava.library.path=./lib/setuid * add an option: OPTIONS=Server,jsp,jmx,resources,websocket,ext,jta,plus,jdbc,annotations,setuid * add etc/jetty-setuid.xml as the first configuration file You edit the etc/jetty-setuid.xml file and change the <username>, <groupname> as appropriate for your environment. Start: sudo java -jar start.jar Note that if you don't have the setuid .so and .jar file in $JETTY_HOME/lib/setuid, then there is no point in setting the OPTION for it, as the OPTIONs control what is on the classpath inside $JETTY_HOME/lib. Also, it seems you may have changed the start of the jetty-setuid.xml config file, but it should be: <Configure id="Server" class="org.mortbay.setuid.SetUIDServer"> Hope that gives you some help in setting things up correctly. I will also update the documentation page @ eclipse wiki, which looks to be out of date. cheers Jan On 3 November 2011 20:30, Penta Valle <[email protected]> wrote: > Hi, > just tried to run Jetty 7.5.4 as non root users, using setuid feature > without success. > > I installed .deb package, built on hightide version, and: > added -Djava.library.path=lib/ext, etc/jetty-setuid.xml and OPTION=setuid in > start.ini > modified etc/jetty-setuid.xml with id="org.eclipse.jetty.server.Server" > copied lib/setuid/* in lib/ext > > but I have this error when starting Jetty: > Error: libsetuid.so could not be found > Exception in thread "main" java.lang.reflect.InvocationTargetException > ...... > Caused by: java.lang.UnsatisfiedLinkError: > org.mortbay.setuid.SetUID.getpwnam(Ljava/lang/String;)Lorg/mortbay/setuid/Passwd; > > This is the only reference to this error: > http://jira.codehaus.org/browse/JETTY-1197 > but looks really old and fixed > > I use Java6 to run Jetty, is it possible that i have to recompile setuid > module as in > http://wiki.eclipse.org/Jetty/Howto/Port80#Building_the_SetUID_Feature_for_Your_Operating_System > ? > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
