chroot is a command on UNIX-like systems which runs a process under a different root directory.

learn more… | top users | synonyms

1
vote
2answers
533 views

Run valgrind inside a chroot environment on Debian?

Is it possible to use valgrind within a chroot environment on Debian? It seems to need to access the proc filesystem, which is unsurprisingly inaccessible. root@tree:/# valgrind valgrind: warning (...
1
vote
2answers
1k views

Guide to creating a chroot environment - specifically with a different kernel

I have successfully installed a Ubuntu chroot (Maverick) on a running Linux appliance (an old Thecus N5200PRO box) which has been running various services for me quite happily. When I attempted to ...
0
votes
1answer
427 views

Normal permissions for running mysql

I'm trying to run mysqld inside chroot environment. Herez the situation. When I run mysqld as root, I can connect to my databases. But when I run mysql using init.d scripts, mysql gives me an error. ...
10
votes
1answer
5k views

How to add pointers to filesystems outside the chrooted environment - using chrooted SFTP via OpenSSH

So, I'm pretty sure this is true, but I haven't found a specifically detailed independent reference that directly answers my question. Question being: How can I add access to a resource that is ...
3
votes
2answers
3k 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. ...
1
vote
1answer
668 views

os x snow leopard install xcode in chroot

I'm trying to build a chroot environment for testing developer builds of some software. I need xcode installed in this chroot to build it, but the xcode package from the snow leopard install dvd will ...
1
vote
2answers
4k views

Failed to su after making a chroot jail

On a 64 bit CentOS host I am using script make_chroot_jail.sh to put a user in a jail, not permitting it to see anything expect it's home at /home/jail/home/user1. I did it typing this: sudo ./...
0
votes
7answers
26k views

How to change the root directory for a Linux user?

For a user on a Linux host, I need to make everything inaccessible besides his home directory. I have heard that this is usually done by changing the root directory for the user (and setting it to ...
2
votes
1answer
257 views

Preferred way to create a chroot when chrooting subset of users when logging with SSH?

By using libpam-chroot it is possible to chroot subset of users quite easily based on an username when user is logging with SSH. What is a good way to create this chroot and libpam-chroot setup. One ...
1
vote
1answer
1k views

Running stuff (web services) in chroot/isolated env

First of all, I read all the chroot questions I could find on the net and on Superuser. Basically they all cover running a 32bit app running on 64bit host and so on. I want to have an isolated ...
46
votes
5answers
102k views

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages.What I'm trying to do is to hand craft the packages I'm going to use on an XO laptop, because compiling packages takes really long time ...
1
vote
1answer
753 views

Chroot from Debian livecd

I'm trying to repair LILO on a Debian server. I'm trying to chroot, with chroot /mnt/boot /etc/csh and I get: chroot: cannot run command '/etc/csh': Permission denied How can I perform a chroot?
29
votes
1answer
48k views

What's the proper way to prepare chroot to recover a broken Linux installation?

This question relates to questions that are asked often. The procedure is frequently mentioned or linked to offsite, but is not often clearly and correctly stated. In an objective to concentrate ...