HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   run php from jailed shell (and other commands) (http://www.howtoforge.com/forums/showthread.php?t=61592)

aldo 24th April 2013 12:03

run php from jailed shell (and other commands)
 
I would like to run php from a jailed shell (Chroot Shell = Jailkit).

For example:
PHP Code:

#!/usr/bin/env php
<?php
    
// my code
?>

Also, I would like enable some other commands like ping and traceroute.

How can I do that?

How dangerous is it?

Thanks for any help.

aldo 2nd May 2013 10:44

Nobody wants to help me?

till 2nd May 2013 10:52

If a binary is not available in the jail, then you cann add it with the jailkit command jk_cp:

http://olivier.sessink.nl/jailkit/jk_cp.8.html


All times are GMT +2. The time now is 14:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.