A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree.

learn more… | top users | synonyms

0
votes
0answers
25 views

Binding /run/udev in Debian chroot [closed]

I was trying to solve the problem mentioned here: Running (X) Xfce4 in Debian chroot The solution he mentioned was to "bind /run/udev". As far as I see, it is suggested that binding host's /run/udev ...
1
vote
0answers
11 views

Chroot Users to /opt and subdirectories [duplicate]

I'll make this short and hopefully I make sense. Im trying to give a user ssh access, but, he/she must only be able to access /opt and the few subdirectories that live under it. However, here's ...
3
votes
1answer
846 views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
2
votes
1answer
1k views

Chroot gone wrong, can't ssh with user

Distribution: Scientific Linux 6.5 (Carbon), not exactly your typical brand of linux. Tried to chroot a user using these instructions for SSH and quite obviously failed, and now I can't even log in ...
1
vote
2answers
2k views

Disable operations outside user's home directory with chroot jail?

I'm trying to restrict a user to a specific directory called gclegal using a chroot jail. I've uncommented the line in the /etc/vsftpd.conf file chroot_local_user=YES Created a new user called kg: ...
19
votes
5answers
95k views

How to create a FTP user with specific /dir/ access only on a Centos / linux installation

So I'm on a VPS - CentOS Linux installation. I have vsFTPd on the server. I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a ...
2
votes
1answer
820 views

CHROOT: Unable to copy files to jailed users directory from local machine using WINSCP

I've setup a chroot environment for one of my users called client on my system. I'm using WINSCP to connect to my server from my machine using public key authentication. Everything works fine, I can ...
2
votes
1answer
611 views

How do I run chromium inside a chroot?

Okay, I can run Iceweasel 17 ESR fine and some simple X apps like xkill, so I know that it's not merely an X display problem. However any version of Chromium and Iceweasel 24 fail with the following ...
1
vote
1answer
884 views

Any better alternative to chroot on an OpenVZ VPS?

Are there any better alternative to chroot environment? I'm thinking about running nginx on a jailed environment. BTW, I'm on OpenVZ VPS, so modifying the Kernel is a no-no. (I think that prevents ...
35
votes
2answers
21k views

Getting “Not found” message when running a 32-bit binary on a 64-bit system

I have currently a strange problem on debian (wheezy/amd64). I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/. To make things ...
2
votes
0answers
32 views

Sound output not working properly in chroot

So I have a 64-bit Linux Mint 17 system and I am trying to set up a chroot environment with a 64-bit Ubuntu 12.04-based system (actually something called Vinux, an Ubuntu remix). The problem is that ...
1
vote
1answer
1k views

Apache + mod_fcgid + chroot with mod_security. CentOS/RHEL 6

I am trying to setup a web server running Apache + mod_fcgid + mod_security chroot enabled and having a real hard time to get this working. Apache was installed from official CentOS repo and mod_fcgid ...
2
votes
1answer
15 views

get back to initramfs on shutdown

I have got my own initramfs running its own init script. After doing some things, it finally calls switch_root and executes the init script of the system, which is mounted in /mnt. Now I want to get ...
1
vote
2answers
29 views

How to use bindfs to create a shared folder between a chroot environment and its host

As the title says. I want to use bindfs (or any viable alternative) to solve the following problem: I have a local folder that contains a maven project I am working on. However I can only build in a ...
12
votes
4answers
85k views

Limit FTP access only to the /var/www with vsftpd

I am running vsftpd as ftp server on my linux (rasbian), I log in to the machine as a root user. I would like to be still locked to using only /var/www, how can I configure vsftpd conf to accomplish ...
3
votes
1answer
2k views

How to run Firefox in a chroot jail?

I've got this chroot jail all setup. I tried to run Firefox in it, but got this message: "Gtk-WARNING ** cannot open display: " I know I have to invoke Firefox with --display= something. I probably ...
0
votes
1answer
286 views

Docker in Crouton - VFS consuming astronomical amounts of space

I'm attempting to help out a roommate who has installed Kubuntu on his Chromebook using Crouton (it's basically just a fancy chroot run within ChromeOS). I helped him get the Docker daemon running, ...
0
votes
0answers
21 views

Running a DE in chroot?

I'm looking to run a desktop environment inside of chroot using Xnest. So far I've gotten Xfce to work but everything else not so much. Both cinnamon and gnome fail to run. Cinnamon gives me this ...
1
vote
2answers
22 views

How to input Chinese (JCK) in console without X running

Is it possible at all to input JCK languages (Traditional Chinese in my case) in the console without having X-windows running? All the help I have found online for Chinese input assume that X and ...
2
votes
2answers
55 views

Trying to transplant bash to /mnt for chroot, what does bash want in order to work?

I have a stage 3 gentoo tarball.. extracted it to /mnt which is hosting /dev/sda3. Though there was no bin and no sign of bash after unpacking. Far as I'm aware, the rest of the configuration involves ...
2
votes
2answers
110 views

chroot ssh users to home directory

How can one chroot ssh users to their home directories? This is what i have set in my sshd_config file: ChrootDirectory %h Subsystem sftp /usr/libexec/openssh/sftp-server ssh version is ...
5
votes
3answers
378 views

How do Linux permissions work when a process is running as a specific group?

This is something I haven't been able to find much info on so any help would be appreciated. My understanding is thus. Take the following file: -rw-r----- 1 root adm 69524 May 21 17:31 ...
2
votes
1answer
42 views

upgrade chroot version on centOS 5?

How do I upgrade chroot release on my centos 5 server? I want to install a service that uses a new capability available in later versions (--userspec) of chroot and I can't find any documentation of ...
0
votes
1answer
36 views

Disk ID in chroot / jail

When I print out all information about a disk /dev/sda on my host system, then I get this sort of information (I got this information with command udevadm info --query=all --name=/dev/sda): P: ...
9
votes
3answers
2k views

Providing /bin and /lib inside a chroot jail

I need to be able to provide the /bin and /lib directories inside a chroot jail so that programs can dynamically link properly. Is there a way to accomplish this without making a copy of the /bin and ...
0
votes
0answers
32 views

Is possible to have full guest system under host installed via DebootstrapChroot?

My goal is installing Ubuntu 14.04.2 LTS under Debian 7 wheezy with full GNOME Desktop. I know I can use use tools like VirtualBox etc. but it seems like overhead. To be more precise under this Ubuntu ...
1
vote
0answers
30 views

Is it secure to mount with defaults my /chroot partition?

I run debian with GRSECURITY patched kernel. Apache is chrooted with mod_chroot under /chroot For now I have mounted /chroot partition with defaults,nodev. However, Apache need to access ...
1
vote
2answers
124 views

How to chroot to provide a new glibc version to an app?

I am trying to run a program, but when I execute it the following error appears : ./app: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./app) At first I read to ...
1
vote
2answers
61 views

How to properly unmount mounted directories after doing chroot?

Usually, I mount some directories to chroot environtment like this: mount -t proc /proc /mnt/chroot/proc mount --rbind /dev /mnt/chroot/dev mount --rbind /sys /mnt/chroot/sys mount --rbind /run ...
1
vote
0answers
39 views

Debian ARM on chroot Mumble server error

I use Debian running in a chroot next Android. $ uname -a Linux localhost 3.0.64-CM-g7e7a10d #5 SMP PREEMPT Wed Apr 8 17:34:47 BRT 2015 armv7l GNU/Linux I installed mumble server apt-get install ...
3
votes
2answers
16k views

How to restrict ssh users to browse only /home/%u contents

Can I confine my users to their /home/%u directory using only OpenSSH configuration? From instructions I found on the Internet, I stopped the SSH server and appended the following to the sshd_config ...
1
vote
1answer
51 views

Login to user's session with chroot

I have an USB thumb stick with the following partition scheme: sdb sdb1 -> root partition '/' sdb2 -> /home partition If I boot from a live CD, or just from my current Ubuntu OS ...
1
vote
0answers
41 views

Why does grub2-install escape chroot jail?

I have an odd experience. Scenario: I am writing a Linux installer (based on OpenSUSE 12.2) that runs in an initrd (actually initramfs), and I'm trying to update the bootloader. A copy of the ...
1
vote
1answer
426 views

How to set up chrooted and non-chrooted sftp?

I am trying to set up my Openssh server to allow for chrooted sftp-only users as well as for non-chrooted sftp and ssh users. My condensed (comments and blank lines removed) /etc/ssh/sshd_config looks ...
2
votes
2answers
69 views

Making Ubuntu programs available to fedora through “chroot”

I have Fedora and Ubuntu installed on different partitions on my system. Now i want to make programs such as "adobe reader" or "kerio-control-vpnclient-8.4.2-2869-linux" available to fedora. those ...
6
votes
1answer
608 views

Simulate chroot with unshare

I am trying to write a bootstrapper for a minimal, from-source linux distribution. I would like to build in a chroot-like environment. This should simplify packaging. I do not care about security at ...
1
vote
0answers
698 views

No screens found error when starting fresh install of chroot debian wheezy with xfce gui

I am not an experienced Linux user, but have bought a chromebook and am now installing crouton. This is the very first thing I did with the Chromebook, so I don't think I need a powerwash. First I ...
0
votes
0answers
91 views

Synology jailkit debian cron debootstrap

I have a Synology NAS. For advanced using of my server, I installed a debian with chroot-jailkit and debootstrap. I follow those instructions (in french sorry) This is working really fine. I have ...
1
vote
1answer
937 views

Is there an ARM repository for Arch Linux?

I'm trying to create a chroot for my rooted android phone. I want to do this with the arch_bootstrap.sh script found on the wiki but I can't find an ARM repository. My PC is x86_64 Arch Linux and my ...
12
votes
5answers
16k views

How can I chroot into a filesystem with a different architechture?

I'm trying to chroot into a Arch Linux ARM filesystem from x86_64. I've seen that it's possible to do using static qemu by copying the binary into the chroot system: $ cp /usr/bin/qemu-arm ...
2
votes
2answers
98 views

Chroot user exit jail [duplicate]

I am using OpenSSH chrootdirectory feature to give access to a user via ssh. Can this user exit the jail and return to the normal OS environment? Maybe with su?
1
vote
0answers
53 views

Setting up basic chroot environment from a fedora ISO image in Ubuntu

From a tutorial in https://help.ubuntu.com/community/DebootstrapChroot at TLDR section i was able to set up a chroot environment for 32 bit Ubuntu ISO image under 64 bit Ubuntu. Now i need to do the ...
0
votes
0answers
90 views

Android chroot Debian

I have a armv7l embedded device with 3 usb ports and a sd card slot. The OS of the device is android with a Debian OS in chroot. Via the Debian I can ssh into the device and breakout the chroot to ...
12
votes
4answers
4k views

Lightweight isolated linux environment

I want an isolated (guest) Linux environment on my computer that I can mess up without worrying about the host. E.g. install a lot of stuff from source without package management, pollute environment ...
1
vote
2answers
386 views

Implement ProFTPd server without chroot

Can I use ProFTPd without using a chroot jail (thereby preventing access to anything outside of the FTP root)? I have a requirement to have symlinks in my FTP source that point to locations outside of ...
1
vote
0answers
57 views

Linux: how to run a program with rw access to only a folder

How can I execute a program in a way that all the system is RO and only some folders are RW? Eg: steam (:P) roexec --rw ~/.steam steam Is there any tool that allows me to do this? I've tried mount ...
8
votes
2answers
7k views

How to unmount a formerly chroot'd filesystem?

I'm using a rescue-live-system (similar to a live-cd) to fix some issues with my Debian server, like that: # mkdir -p /mnt/rescue # mount /dev/md2 /mnt/rescue # mount --bind /dev /mnt/rescue/dev/ # ...
24
votes
2answers
8k views

How do I tell I'm running in a chroot?

I have a unix installation that's supposed to be usable both as a chroot and as a standalone system. If it's running as a chroot, I don't want to run any service (cron, inetd, and so on), because they ...
1
vote
3answers
2k views

error while loading shared libraries: libc.so.6: cannot open shared object file

I have a Linux kernel and I chroot it on /var/chroot: I added bash dependencies like so: ldd /bin/bash linux-vdso.so.1 => (0x00007fff9a373000) libtinfo.so.5 => ...
2
votes
1answer
108 views

What folders need to be mounted before chroot?

I am attempting to update a broken Linux Mint 32 bit installation using chroot from a live cd. Different websites give different folders that need to be mounted before chroot. The error I am trying ...