Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Setuid UnsatisfiedLinkError


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

You edit your start.ini and do:

* uncomment --exec
* add -Djava.library.path=./lib/setuid
* add an option:
* 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.

  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.


On 3 November 2011 20:30, Penta Valle <pentavalle@xxxxxxxxxxx> 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: 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:
> but looks really old and fixed
> I use Java6 to run Jetty, is it possible that i have to recompile setuid
> module as in
> ?
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx

Back to the top