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

learn more… | top users | synonyms

0
votes
0answers
634 views

chroot SFTP user can't modify any files in mounted drive

Well, here are the steps I’ve done; the problem is listed at the bottom. sudo mkdir /home/test sudo useradd test sudo chown root:test /home/test sudo chmod 755 /home/test sudo groupadd testgroup sudo ...
0
votes
1answer
509 views

Chroot from android into environment as user

I'm trying to use my android tablet as a dev environment. So far I have created an Arch and Ubuntu img. I can chroot into both just fine and I have created a user using adduser, but I do not know how ...
1
vote
1answer
726 views

Use Qemu & chroot to reset password on mounted external disk

I have a NAS based on Linux, but the root password is kept secret by the manufacturer. Now to reset the password I am trying to mount the disk to my local linux computer. All of the files are present ...
2
votes
2answers
2k views

Create a tarball with a fake `root`

I'm working on something in a Makefile that will look something like this: tarball: mkdir -p tmp/tarball/etc/service mkdir -p tmp/tarball/usr/local mkdir -p ...
2
votes
1answer
208 views

How do I safely allow unprivileged users to copy files to my server?

I know that I can use rsync over ssh to send files from one Linux computer to another. However, in this case I need to give access to my system to users with a lower level of trust (people who may ...
2
votes
1answer
347 views

copied chroot jail directory cant be chrooted

I am developing a package so when users login through ssh they are forwarded to a chroot jail. The jail directory is created via makejail program on building process. But when the jail package copy ...
0
votes
1answer
80 views

file command output — linux version

Why two executables are showing different version for linux. When cross-compiled compiled under chroot enviroment. GNU/Linux 3.6.3, GNU/Linux 2.6.26, Hello world program output. ...
1
vote
1answer
820 views

yum --installroot should use /etc/yum.repos.d?

I have a chroot environment in a directory. I want to install some RPM packages using the repositories in that chroot environment instead of the host OS ones. yum --installroot= will look for ...
1
vote
1answer
212 views

How to transfer a USB bootable ubuntu system to a bootable DVD

I've built a USB bootable 1.5G system derived from Ubuntu core (along the lines of this example). It boots using syslinux on most of our Intel hardware. Intel iMacs are an exception (grub EFI with GPT ...
1
vote
0answers
32 views

statify executables in chroot

I am trying to run arbitrary executables in a chroot. Unfortunately I have different version of the shared library dependencies of some of the executables in the chroot. Is it possible to reroute the ...
1
vote
0answers
57 views

Chroot based on group name

I have a *nix system on which I want to get an SFTP chroot set up. Let's say there are three users, users from the same country can read and write the files from their compatriots, but should be ...
1
vote
2answers
2k views

Linux commands “id” and “whoami” dependencies (for chroot environment)

I have a new openssh (openssh-server-6.1p1-4.fc18.i686) chroot environment in Fedora Core 18 and puts users in a chroot directory structure with a (bash) shell. During troubleshooting SELinux has been ...
0
votes
1answer
233 views

Why `/proc` file system should be mounted when re-install GRUB from `chroot`?

Currently, the MBR on my machine is corrupted, so I decide to re-install GRUB from a liveCD and with chroot. From this tutorial, I can complete the re-installation. However, I'm not clear about the ...
5
votes
1answer
3k views

Arch Linux Install, Why is arch-chroot giving me an error?

I'm following the Arch Linux install instructions found here from a live cd, and I'm stuck issuing the following command: # arch-chroot /mnt mount: sys is already mounted or /mnt/sys busy sys ...
2
votes
0answers
138 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
249 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
2k 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
435 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
119 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
133 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
74 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
791 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
5k 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
382 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
3k 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
693 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
1k 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
281 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
3k 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
492 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
1k 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
301 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 ...
2
votes
1answer
883 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
534 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
166 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 ...
2
votes
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
3answers
2k 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
2answers
433 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
414 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
4k 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
621 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
22k 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
249 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 ...
30
votes
4answers
72k 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 ...