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

learn more… | top users | synonyms

1
vote
1answer
315 views

How to start Xorg-server inside plain chroot?

when I runchroot /somepath /usr/bin/startxI got something what looks like an evdev problem... (I correctly --bind mounted /dev/ /dev/pts /dev/shm /proc /sys /tmp ) The screen is displayed and ...
2
votes
3answers
3k 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 : ...
0
votes
0answers
11 views

If I create a jail for a process does that process need to be chrooted every time I start it?

I just installed Debian on my computer and I'm looking to run ownCloud in a chroot jail. I'm not exactly sure how to do this but from what I can tell I just copy the files needed to install and run ...
0
votes
1answer
26 views

Using my server to do computationally heavy tasks

I have a laptop I do most of my computing on but it's very lightweight and it takes ages to compile anything on, or do any heavy tasks. Something like installing an emacs plugin or a cabal package can ...
0
votes
0answers
31 views

How to chroot into memory disk so that hard disk can be unmounted?

What I want to achieve is to be able to backup my hard disk over ssh like the following without the need to boot from a live CD / rescue media: dd if=/dev/sda | gzip -1 - | ssh user@hostname dd ...
0
votes
1answer
32 views

Install windows on chroot of linux

How do I install Windows on chroot in Linux, if it is possible at all. I am confused about the meaning of chroot so any help would be appreciated.
2
votes
1answer
2k views

chrooted sftp user with write permissions to /var/www

I am getting confused about this setup that I am trying to deploy. I hope someone of you folks can lend me a hand: much much appreciated. Background info Server is Debian 6.0, ext3, with ...
1
vote
3answers
51 views

Chroot sftp jail seems to be insistent on not working

So I followed this guide to the letter: http://markshust.com/2013/04/01/how-setup-chrootd-sftp-account-linux and a few other guides as well, but I seem to be incapable of getting a connection. I am ...
7
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 ...
1
vote
1answer
48 views

Is there any way to virtualize a Linux installation on another partition?

The basic idea is like this: run another Linux installation as if it was in VirturalBox or VM ware. With "chroot", I can do something similar. For example, I can mount the partition where Arch Linux ...
1
vote
0answers
187 views

rsync error: symlink has no referent

I am trying to configure rsnapshot (which uses rsync) to backup a Windows server but I am having trouble with rsync being unable to follow a symlink on the server to be backed up. Setup: Windows ...
0
votes
0answers
47 views

Explaining the inner working of pivot_root

Having two Linux dists in two independent partitions, each one with all its directories in the same partition, including swap, can I just: cd second_linux_dir pivot_root . running_linux_dir exec ...
0
votes
2answers
1k views

Start a systemd service inside chroot

With init scripts (or with openrc) I alway could run services from a different installation root. but when I run chroot /somepath/to_root /usr/bin/systemctl start someservice I got: Running in ...
2
votes
2answers
243 views

schroot build environment setup how to avoid bind-mount home

The recent linux distributions such as Fedora and Ubuntu all use chroot environment to make the build. Because when making the build often it needs to install some special tools, and to install to the ...
0
votes
2answers
637 views

chroot on OSX as a different OS

I was wondering if anyone has been able to use chroot on OSX to run another OS (ubuntu, centos). I know that they are very different, but almost everything I want to use this for wouldn't care about ...
3
votes
1answer
952 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.
1
vote
1answer
387 views

Install full version of Unity on Chrome OS using crouton

I have an Acer Chromebook. Using crouton, I installed Ubuntu (unity) on it. I am pretty familiar Ubuntu 12.04. But the installed one is very minimized package. My fonts are missing and I manually ...
1
vote
1answer
635 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 ...
1
vote
1answer
628 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?
1
vote
0answers
381 views

Logging rssh/chroot SFTP users

I'm trying to log activity (uploads, downloads, renames, deletes) for SFTP users. If I SFTP with a normal user, it logs to /var/log/secure. If I SFTP with a rssh user, it logs that they connected, but ...
1
vote
1answer
169 views

OpenBSD 'device not configured' error in chroot-ed environment

I have asked this question on StackOverflow but given the comment there it seems like it fits here better. This is almost certainly a system configuration issue—you didn't set up the jail ...
1
vote
2answers
569 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 ...
1
vote
1answer
846 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 ...
0
votes
1answer
226 views

Directive 'ChrootDirectory' is not allowed with new OpenSSH

I am trying to set up chrooted SFTP access but OpenSSH is giving this error: /etc/ssh/sshd_config: line 94: Bad configuration option: ChrootDirectory /etc/ssh/sshd_config line 94: Directive ...
1
vote
2answers
1k 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 ...
1
vote
0answers
413 views

chroot under Mac OS X

So I have googled a lot with different search terms, but didn't find anything usable, only that intead of ldd I have to use otool -L to see the used libraries of a programm. I tried to copy bash into ...
0
votes
0answers
45 views

Chroot SFTP and tunneling

I am attempting to give chroot sftp access to a group, as well as giving limited tunneling capability. I can give one or the other, but haven't figured out how to do both at the same time. The ...
0
votes
1answer
165 views

How do I fix the WSOD in phpMyAdmin and Drupal in chrooted Apache?

When I attempt to run phpMyAdmin (both 3.5.5 and 4.0.4.2) or Drupal (7.22) in chrooted Apache (2.2.3), I get the WSOD (White Screen Of Death; a.k.a. a blank page). I have tried with both mod_chroot ...
0
votes
0answers
102 views

chroot sftp home directory as well as access one level above

CentOS 6, latest openSSH, using latest scponly as shell (also have rssh, but that doesn't want to work either) All chroot'ing functionality done via sshd_conf Everything works as expected except one ...
0
votes
1answer
97 views

schroot Don't Share Home Directory

I created a schroot recently (following the directions here), and it conveniently shares my (host) user home directory. That is, /home/username is the same in the chroot as outside the chroot. Where ...
0
votes
0answers
423 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
289 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
408 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
1answer
215 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 ...
1
vote
1answer
153 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 ...
0
votes
1answer
138 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 ...
3
votes
2answers
1k 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. ...
0
votes
1answer
58 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
521 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
0answers
26 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 ...
4
votes
1answer
1k 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 ...
0
votes
2answers
2k 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
0answers
40 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 ...
0
votes
1answer
194 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 ...
2
votes
0answers
112 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
152 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
1answer
325 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 ...
25
votes
4answers
44k views

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages. I followed the guide here http://www.olpcnews.com/forum/index.php?topic=4766.0 However, when I tried to install some packages, it ...
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 ...
2
votes
1answer
349 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 ...