LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2005, 07:41 PM   #1
rjkfsm
Member
 
Registered: Apr 2004
Location: Charleston, SC
Distribution: RHEL, CentOS, Debian, Gentoo, Knoppix & DSL
Posts: 126

Rep: Reputation: 15
chroot problem


Hi,

I have searched the web over looking to chroot my Abyss web server and haven't found much. I used "ldd" to find all my dependencies and created a little directory tree inside my jail with bin,usr,lib,var & etc.

When I try to chroot to my jail for testing, I get "chroot: cannot run command `/bin/bash': No such file or directory"

Yes, I copied /bin/bash to $JAIL/bin/

I don't understand what I doing wrong. Can anyone help?

RK

#ls -l $JAIL
-rwxr--r-- 1 abyss web 582 Jul 14 17:40 Installation Instructions.html
-rw------- 1 abyss web 11125 Jul 17 07:40 abyss.conf
-rwxr--r-- 1 abyss web 387144 Jul 14 17:40 abyssws
drwxr-xr-x 2 root root 120 Jul 18 20:16 bin
drwxr-xr-x 2 abyss web 1128 Jul 14 17:40 console
drwxr-xr-x 2 abyss web 1512 Jul 14 17:40 doc
drwxr-xr-x 2 root root 216 Jul 18 20:09 etc
drwxr-xr-x 7 abyss web 1568 Jul 14 17:42 htdocs
drwxr-xr-x 2 abyss web 96 Jul 14 17:42 lang
drwxr-xr-x 2 root root 664 Jul 18 20:07 lib
-rwxr-xr-x 1 abyss web 2842 Jul 18 20:09 libs
-rwxr--r-- 1 abyss web 8326 Jul 14 17:42 license.txt
drwxr-xr-x 2 abyss web 168 Jul 14 17:42 log
-rwxr--r-- 1 abyss web 779 Jul 18 20:20 persist.data
drwxr-xr-x 3 root root 72 Jul 18 20:07 usr
drwxr-xr-x 3 root root 72 Jul 18 20:07 var

#ls -l $JAIL/bin
total 1541
-rwxr-xr-x 1 root root 741740 Jul 18 20:09 bash
-rwxr-xr-x 1 root root 83460 Jul 18 20:09 ls
-rwxr-xr-x 1 root root 741740 Jul 18 20:16 sh
 
Old 07-19-2005, 10:46 AM   #2
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
What is the chroot command? It should be:
chroot $JAIL
If that doesn't work, try putting in the actual value of JAIL. ex.
chroot `echo $JAIL`
 
  


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 problem bruse Linux - Security 3 07-04-2005 06:57 AM
Chroot problem PhuckFonix Linux - Newbie 3 05-02-2005 09:15 PM
problem with chroot ef_ Linux - Security 6 10-14-2004 06:46 AM
I have a problem with chroot. vintermann Linux - Software 2 01-31-2004 07:57 AM
Chroot problem lokiz Linux - Networking 2 06-14-2001 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 AM.

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