LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2010, 10:55 AM   #1
swamyvnvs
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Post how to call access out side the chroot jail files from the apache


Hai friends

I have one requirement i.e I want to call the java file from the php function using shell_exec command , i am using the chroot jail concept , if i using this command i am getting the empty file because java enviroment is outside the chroot jail,so how to access the the files those are out side the chroot jail

Please tell to me if any one know.

Thanks and Regards

swamyvnvs
 
Old 04-02-2010, 10:59 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Build the java environment inside the chroot. Giving a way outside the jail would completely defeat the purpose of it. If your java is in stalled to say /opt/java and your chroot is /var/chroot then you would need to have an install of java at /var/chroot/opt/java also.
 
Old 04-03-2010, 12:05 AM   #3
swamyvnvs
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Post how to call access out side the chroot jail files from the apache

Thanks rweaver,

Thank you for your replay, but if i installed java inside the chroot , may i get the chroot benfits,because my application need heavy security.Here not only java if i run php file also , i need to install the php inside the chroot, is there any other solution.

Thanks and Regards

swamy
 
Old 04-06-2010, 11:23 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
PHP would depend if you were using php-cli or the apache php module... the module can be utilized even if loaded outside the chroot, the cli version (which someone people use so they can run php scripts as the user and such) would need installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
read & modify files out side chroot jail Dr_Death_UAE AIX 2 11-06-2008 05:24 AM
Chroot jail user can't access internet proximity Linux - Security 12 06-27-2007 02:52 PM
JAIL CHROOT analog in windows apache? eugene2008 Linux - Server 2 10-06-2006 02:31 PM
chroot jail for apache dcdbutler Linux - Networking 3 04-02-2006 02:04 PM
Call external prog from withing chroot jail The_JinJ Linux - General 2 12-13-2005 04:38 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration