LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-02-2005, 10:45 AM   #1
Consul
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Rep: Reputation: 0
Perl not running backticks within chroot jail


Hello, all.

I have a sticky bit of a problem. We are running our webserver with all of our individual hosted domains running within their own chroot jail. In the process of trying to set up Awstats for our own domain (for the ISP I work at), we (meaning myself and the senior admin here) discovered that Perl is not running anything inside of backticks while within the chroot jail. As you can guess, this might pose a problem.

We tried researching the issue, only to find basically nothing out there on this issue or how to fix it. If anyone has any clues they can pass along to us, it would be greatly appreciated.

I should take this opportunity to point out that the entire Perl installation is within the chroot jail, one installation per domain. The entire web and FTP servers also run from within the jail in their entirety.

Thank you for your help.
 
Old 08-02-2005, 10:59 AM   #2
Consul
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Okay, you're all going to love this one.

Backticks are working. The issue was that Perl could not find the executable we wanted it to run (pwd). The funny thing was, if you dropped into the command line under the chroot jail, pwd ran just fine. But when we looked for the executable under the jailed directory, it wasn't there. The only thing we can think of is bash was answering the request for pwd rather than firing the executable.

Well, we have our issue solved now, we think, so thanks for your help anyway.
 
Old 08-02-2005, 05:36 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Yes, bash has a bult-in pwd command and it'll be used by default unless you explicitly ask for the external program.

And why aren't you just using the Cwd module? It looks like it ends up using /bin/pwd anyway, but your code would be more portable.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot jail Gimpy Linux - Software 10 05-07-2010 01:30 PM
Chroot jail pachanga Linux - General 12 09-26-2008 05:15 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 02:20 AM
chroot jail etc. f1uke Linux - Security 5 08-24-2005 03:12 AM
chroot jail simon Linux - Security 3 08-05-2001 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration