a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root

learn more… | top users | synonyms

3
votes
1answer
2k views

How to chroot into persistent installation?

To chroot into 'normal' installation requires just mount of common /, /proc, /sys and /dev to do normal administration tasks. But how to proceed with so called 'persistent' installation (see here)? ...
3
votes
1answer
1k views

Install FTP server with support for virtual users

I'm trying to install an FTP server on Ubuntu 11.04. I've installed vsftpd, but I had no success in getting it to work with virtual users. I want to be able to have give fake users and direct them to ...
5
votes
1answer
2k views

How to chroot Ubuntu+1?

What is the recommended way to use chroot from Ubuntu Stable (in my case 11.04) with Ubuntu+1 (11.10)? Linked (but probably separate) is "Is there anything special that I need to do in order to get ...
3
votes
1answer
1k views

upgrade a kernel when in chroot. how to?

I am trying to build a custom cd using uck. Now, i want to upgrade the kernel, remove the old kernel and then create the iso. I am able to upgrade the kernel but I am not able to switch to the new ...
2
votes
1answer
702 views

Clean up Chroot

Is there way to quickly clean up or revert your chroot to its previous new state, without reinstalling or re setting it up, so I could start fresh again?
1
vote
1answer
4k views

How to get pulseaudio working from chroot? [closed]

I've got a chroot environment with the same architecture as host environment. I'm trying to get apps from chroot be able to play sound with PulseAudio. I've tried the tutorial from Arch Wiki and ...
13
votes
2answers
53k views

How to setup a SFTP server with users chrooted in their home directories?

I have been trying to set up a SFTP server with multiple users chrooting into their home directories. I followed the advice on this guide and then executed the following commands on the user's ...
1
vote
1answer
244 views

Libraries used by C# executables

I am having a problem when I try to run C# executables (compiled with mono C# compiler at 10.10 server) inside a chroot jail. In order to run the executable inside the jail I need to include the ...
2
votes
2answers
1k views

using DNS lookup in chroot postfix

I'm trying to set up a postfix set up on my client machines. All machines should use a central ldap directory for common postfix (e.g. aliases, etc). But since postfix runs in chroot postfix is unable ...
2
votes
1answer
10k views

Give ftp users access to directories outside their root using symlinks

I tried to give proftpd virtual users access to directories outside their home paths using symlinks I created as root through the console. /var/ftp/users/test is the home of the user named test. ...
4
votes
1answer
3k views

Is there an easier way to chroot than bind-mounting?

Most of the time I use the chroot to rescue an existing installation from usb. When I chroot into another system I have to manually bind-mount proc, sys, dev and dev/pts by issuing for example: ...
3
votes
2answers
9k views

Need ProFTPd to follow symbolic link

I have 2 folder: /var/www/project1/ /var/www/repository/module/ and I have this symbolic link: /var/www/project1/module/News => /var/www/repository/module/News I know the target is outside the ...
7
votes
1answer
578 views

Adding user to chroot environment

I've created a chroot system in my Ubuntu using schroot and debrootstrap, based on minimal ubuntu. However whenever I can't seem to add a new user into this chroot environment. Here is what happens. ...
3
votes
2answers
2k views

Ubuntu chroot “No such file or directory”

I have a web application where I create some folders on my server and put executables there. Then I try to run them with chroot but I get a message that access is denied there. I tried chmod -R 777 ...
7
votes
2answers
283 views

How to build packages for Maverick while running Lucid?

I would like to be able to build a package for the Maverick distribution release of Ubuntu, while running the Lucid distribution release. I found this page: https://wiki.ubuntu.com/DebootstrapChroot ...
4
votes
2answers
6k views

Chroot into a 32-bit version of Ubuntu from a 64-bit host

Xilinx webPack 10.1 requires 32-bit Linux. Only this old version is compatible with their boards. How to make 32-bit applications work on a 64-bit operating system lists: Installation of 32-bit ...
5
votes
1answer
569 views

How to boot from a debootstrap based install?

I would like to boot a testing Ubuntu release from a directory (which contains a debootstrap based install). As far as I understand I just need someway to tell the boot process (initrd scripts?) that ...
7
votes
1answer
883 views

Mounting a network filesystem into schroot

I'm using a network file system (AFS) and I would like to also mount it into my schroot. Adding a line to /etc/schroot/mount-defaults, with bind or rbind in the options didn't help: schroot always ...
12
votes
4answers
53k views

During a chroot attempt, I got this error: “chroot: failed to run command '/bin/bash': Exec format error”

I was following the instructions of this tutorial HOWTO: Purge and Reinstall Grub 2 from the Live CD, when I encountered an error at step 1, as I launched the command sudo chroot /mnt/temp The ...