Jailkit - allowing use of Java/Python

Posted by James hooker on Server Fault See other posts from Server Fault or by James hooker
Published on 2010-09-28T10:36:33Z Indexed on 2011/03/19 16:12 UTC
Read the original article Hit count: 507

Filed under:
|

I'm looking to allow Jailed users to use JAVA (JRE) to execute their own Java files, similarly with Python to execute py scripts.

I've tried adding the JAVA binary (/usr/bin/java) to a jail using the following

jk_cp /path/to/jail /usr/bin/java

This seems to copy some of the libraries across, aswell as the Java binary itself, however the jailed user is still unable to execute Java. It complains first of all of a missing lib called libsli.so. I copied that across and it then complains about libjava.so which I proceeded to copy across to, to no avail.

Does anyone have experience with enabling the execution of Java within a jailed environment?

This is under Ubuntu 10.04 64-bit, with Jailkit 2.11.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about java