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

learn more… | top users | synonyms

2
votes
0answers
130 views

Why is “ls /..” different to “ls /” in fakechroot fakeroot chroot environment?

I am testing a bash script. It sometimes does this: ls /.. In Linux, this is same as: ls / But in a fakechroot setup like this: fakechroot fakeroot chroot sandpit I get a list of files in my ...
0
votes
0answers
186 views

executing a command of a chroot outside of the chroot

I have a chroot environment on /data/workbench/mnt and I want to execute a binary which is inside the chroot environment (for example /data/workbench/mnt/bin/bash). I added the chroot library path to ...
3
votes
2answers
1k views

How do I use the terminal SCREEN when chrooted?

How do I allow a user to use SCREEN on a chrooted user? I have tried everything but I keep on failing. I need the user to be able to use SCREEN when they are logged in bash as a chrooted user.
2
votes
1answer
390 views

Does schroot allow configuration files in the home directory to be overwritten?

When schroot is configured to mount /home, will packages installed inside the chroot overwrite the configuration files in $HOME? For example, if a newer version of gconf2 is installed inside the ...
0
votes
2answers
3k views

What's missing from my sftp chroot setup?

I've followed a half-dozen different tutorials on setting up chroot for sftp users, but my jailed users can still browse up into parent directories. I suspect my permissions aren't set up correctly, ...
1
vote
3answers
116 views

Do all my programs have owner rights to all my files?

I'm worried about all my programs having full access to all my files. Eg: My user is 'john'. I install some program, say Dropbox. Dropbox runs as 'john'. Therefore it not only has full rights on its ...
0
votes
1answer
126 views

Use a host machine's packages from guest chroot in Ubuntu

I am testing my software's compatibility with a very old version of Ubuntu. The software until now was developed on Ubuntu Precise 12.04 and now need to be tested on Ubuntu 6.0 Dapper. For this I ...
1
vote
0answers
63 views

tazpkg install option asking for su when in chrooted image

I am trying to install a couple of packages in slitaz chrootd image but tazpkg keeps asking for su privilages. I have fallowed this tutorial http://doc.slitaz.org/en:handbook:chroot Host is Ubuntu ...
-1
votes
2answers
745 views

Keeping users inside their home directory

I have a fresh install of CentOS and I'm currently setting up users. Their home directories reside within /home/username/ and I want to make it so that they cannot ls or cd outside that area when ...
2
votes
3answers
4k views

SFTP ChRoot result in broken pipe

I have a website that I want to add some restricted access to a sub-folder. For this, I've decided to use CHROOT with SFTP (I mostly followed this link : ...
3
votes
1answer
356 views

SFTP with chroot in a folder that can not have root privileges

I have troubles with setup a SFTP with chroot in "public" folder. Each client on my server has 3 to X accounts. These three accounts are: USER - system account only for internal use, requires full ...
3
votes
2answers
2k views

Booting linux system from chroot: is there a better way to do this?

I want to set up Grub menu entry to boot into chrooted system (installed chrooted debootstrap to avoid touching existing system too much). Currently I do the following to attain it: Install ...
3
votes
1answer
603 views

limits.conf ulimits not being applied to chrooted processes

We allow users to execute scripts on our servers. Our security model involves chrooting them. We want to be able to apply ulimit restrictions to them, and the best way to do it would seem to be in ...
1
vote
1answer
971 views

How do you run a server with chrooted Ubuntu on the HP TouchPad?

The problem: servers appear to be broken inside my Ubuntu chroot. No matter what kind of server I try to run, they all seem unresponsive (VLC server won't respond to client, mkRemote doesn't move the ...
1
vote
1answer
259 views

Unix chroot questions

I have a few questions about chroot: What are the minimum requirements for chroot? Can you chroot into another Unix OS that has /bin/bash in it? Is it possible for the chroot to run in other ...
0
votes
3answers
2k views

Can I chroot to a linux environment from windows

I want to know if it is somehow possible to chroot into a Linux system from Windows, or, is there some technique or hack to achieve that?
0
votes
2answers
403 views

Very limited chroot

I need an absolutely minimal chroot environment that only has a few commands to handle files & directories. No usermanagment or such. Since I want to create such an environment for every of my ...
3
votes
1answer
881 views

How to share a directory across chroots

I have multiple chroots with different sets of software version as a light-weight alternative to VMs. How can I share a directory across the VMs? Naturally, symlinks do not allow to escape a chroot. ...
1
vote
1answer
1k views

Shared memory in chroot environment

I'm playing with Ubuntu 11.10 launched in a chroot environment under Android 3.2.1. Most of the software works fine except PostgreSQL. When installed or initdb launched it's saying: FATAL: could ...
1
vote
1answer
261 views

How do I enable tab tips in Bash?

I am working under debian squeeze. I always install packages such way: sudo apt-g(Tab pressed) i(Tab pressed) aria(Tab pressed) sudo apt-get install aria2 I have installed chroot squeeze to test my ...
1
vote
1answer
729 views

Exclude specific group/users from ForceCommand in OpenSSH ssd_config

I want to make ForceCommand internal-sftp and ChrootDirectory /jail the default for all users accessing a server via SSH. Only users in a certain group are allowed to escape this. How can I exclude a ...
2
votes
1answer
476 views

Loading a new kernel in a chrooted environment

Is it posible to load a new kernel while in a chrooted environment. Say I have one linux distro and want to chroot into another and load its kernel
0
votes
1answer
154 views

changed password is not updated for chroot-ed environment

I have a RHEL box or development. I changed my user and root passwords on it and I can see the change in effect. However, I have a chroot environment on this box and the changed passwords do not work ...
1
vote
2answers
1k views

How to change root device?

I want to be able to change the root device, say from sda to sdb, so that I am able to remove sda. I don't believe this is possible with chroot, as I am changing the root folder to a mount point that ...
1
vote
2answers
1k views

ping not working in a chroot

How can I use the ping command in a chroot environment? $ ping 8.8.8.8 ping: icmp open socket: Operation not permitted Currently I am using CentOs, but ideally there must be a solution that works ...
1
vote
1answer
350 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
391 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. ...
9
votes
1answer
3k 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
2k 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
561 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
3k 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
19k 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 ...
1
vote
1answer
239 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 ...
28
votes
4answers
54k 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
669 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?
20
votes
1answer
27k 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 ...