Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th April 2013, 13:03
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 2nd May 2013, 11:44
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 35
Thanked 3 Times in 3 Posts
Default

Nobody wants to help me?
Reply With Quote
  #3  
Old 2nd May 2013, 11:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,009
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
aldo (2nd May 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:50.


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