Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:17:01+00:00 2026-05-16T22:17:01+00:00

As an alternately to my real question: does anyone know of a simple command

  • 0

As an alternately to my real question: does anyone know of a simple command line tool to make a chroot jail? I’m thinking something that will run a command and copy everything it needs to run into a given directory. I saw some directions for a tool but it had config files and seemed to be expecting me to launch it from X and neither of those work for my case.


And for the real question:

I’m trying to build a chroot jail and it’s not working. This is what I get when I strace the command:

bcs@builder:~/dmd$ sudo strace sudo chroot /home/bcs/dmd/ /usr/bin/make -C src linux.mak 
...
chroot("/home/bcs/dmd/")                = 0
chdir("/")                              = 0
execve("/usr/bin/make", ["/usr/bin/make", "-C", "src", "-f", "linux.mak"], [/* 13 vars */]) = -1 ENOENT (No such file or directory)
write(2, "chroot: ", 8chroot: )                 = 8
write(2, "cannot run command `/usr/bin/mak"..., 34cannot run command `/usr/bin/make') = 34
write(2, ": No such file or directory", 27: No such file or directory) = 27
write(2, "\n", 1
)                       = 1
close(1)                                = 0
close(2)                                = 0
exit_group(127)                         = ?
bcs@builder:~/dmd$ ll /home/bcs/dmd/usr/bin/make
-rwxr-xr-x 1 bcs bcs 166112 Sep 17 00:41 /home/bcs/dmd/usr/bin/make*

it seems that the chroot can’t find make even though it should be there. Any ideas what I’m missing?

BTW: This is on a recent Ubuntu box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:17:01+00:00Added an answer on May 16, 2026 at 10:17 pm

    You probably do not have the loader and/or shared libraries available to make. For instance, on my system (64-bit Debian sid), make needs this:

    $ ldd /usr/bin/make
        linux-vdso.so.1 =>  (0x00007fff95fff000)
        librt.so.1 => /lib/librt.so.1 (0x00007fc97d557000)
        libc.so.6 => /lib/libc.so.6 (0x00007fc97d1f6000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc97cfd9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc97d761000)
    

    You need to have all those files (or equivalent for your make) available in your chroot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to call a VBScript function from a JavaScript call, or alternately
How do I alternate HTML table row colors using JSP? My CSS looks something
In contrast to my previous question , i'll try to give my requirements. I
This is not a real situation; please ignore legal issues that you might think
This question kind of starts where this question ends up. MATLAB has a powerful
Similar to my last question, but I ran into problem lets say I have
Real World Problem: I have my app hosted on Heroku , who (to my
Alternatively is it possible to manually update the built in progress bar? Basically I
Is it possible to reset the alternate buffer in a vim session to what
This is one of those ajax alternate flow questions. Normally I expect my ajax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.