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

1
vote
0answers
10 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 ...
0
votes
0answers
20 views

Binding /usr/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 ...
2
votes
0answers
25 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 ...
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
27 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 ...
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
21 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
104 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
368 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
35 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: ...
0
votes
0answers
30 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
120 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
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 ...
1
vote
2answers
60 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
1answer
50 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
417 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
68 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 ...
0
votes
0answers
89 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 ...
2
votes
2answers
97 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
693 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 ...
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
89 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 ...
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 ...
0
votes
1answer
283 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, ...
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 => ...
1
vote
0answers
166 views

Is there a “supported” way in RHEL/CentOS 7 to union-mount a directory tree on top of an NFS mount point?

I have an NFS share containing almost 500 chrooted (s)ftp user's home directories. This NFS share is mounted on several FTP servers forming a highly available FTP cluster. I would like to enable ...
2
votes
1answer
106 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 ...
0
votes
0answers
180 views

restrict ssh access to /bin and using bash as a shell

I want to restrict my admin user to /bin directory while permitting to use bash as a shell via ssh. This is in my sshd_config file: Match User admin ChrootDirectory /bin X11Forwarding no ...
1
vote
2answers
77 views

Compiling a kernel for Gentoo with my module list from Xubuntu

A while ago, I started installing Gentoo on my Xubuntu box, using a chroot from Xubuntu, following these guides: https://wiki.gentoo.org/wiki/Handbook:AMD64 ...
2
votes
1answer
366 views

chroot with unionfs-fuse, can't access /dev/*

I have created the a chroot jail in combination with unionfs-fuse so that I don't need to install another system inside it. However, the resulting system's /dev entries are not readable.This is ...
4
votes
3answers
2k views

chroot permission denied! But Im root!

I am trying to chroot into an old HD to change a forgotten password, but chroot says permission denied? what gives? I am root! The harddrive I am trying to chroot into is an old version of edUbuntu ...
1
vote
1answer
91 views

Jail in chroot in debian 7.5 - Privileges Separation problem

I'm trying to create a jail for a user in my server. Let's call the user "juser". What do I want to achieve? I want an ssh user to be jailed in his home folder and not have any access (whatsoever) on ...
1
vote
0answers
53 views

Debootstrap for Backbox Error with release file

I'm trying to install a BackBox (Ubuntu based) chroot environment with debootstrap using the following command: sudo debootstrap --variant=buildd --arch i386 trusty /MYJAIL/ ...
1
vote
0answers
114 views

How can schroot works with aufs

I'm using schroot with aufs. Currently, my conf file under \etc\schroot\chroot.d looks like [trusty_chrome] description=Ubuntu 14.04 Trusty running Chrome and Adobe Flash ...
1
vote
0answers
171 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: ...
1
vote
1answer
287 views

How do I properly bind directories inside chroot jails using fstab?

I'm running nginx, PHP-FPM and MySQL on Debian Wheezy. I've set up chroot jails (with debootstrap) for each individual virtual host in /srv/. Everything is working like one would expect, but after ...
1
vote
0answers
42 views

How to write in home user with chrooted sftp

I have a problem with chroot sftp an their home folder. I would like to write in user's home but I don't have proper permission for doing that. sshd_config Match User demo ChrootDirectory %h ...
2
votes
1answer
297 views

Permission denied in scripted chroot jail

I am attempting to script the creation of a chroot jail (I know that there are tools for this, but I am in it for the experience, so please don't recommend a tool). I have a script which looks up ...
1
vote
1answer
180 views

Can I use Apache web server in a chroot-ed environment on Gentoo? And how?

I just installed Apache for the first time on Gentoo. When I chroot into Gentoo from another OS (in this case Microknoppix) and try to start Apache (with /etc/init.d/apache2 start) I get the error ...
1
vote
0answers
29 views

Chrooting any arbitrary program using dynamic linker?

One of the problems using chroots is getting all the binaries and libraries installed. It just occurred to me that there might be another way. The TSocks project uses a technique they call "shared ...
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: ...
4
votes
2answers
266 views

How to prevent schroot from overridding passwd file and others files already present on the chrooted system?

When I had to repair my Debian system, I tried to use schroot due the convenience of not having to mount bind several partitions. But, contrary to my expectations, schroot decided to override my ...
3
votes
1answer
411 views

Error message: unknown user 'geoclue' in statoverride file

I obtained a strange error message inside a chroot: unknown user 'geoclue' in statoverride file when running apt-get install or apt-get upgrade. I use schroot to enter this chroot. I found that I ...
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 ...
2
votes
1answer
169 views

Define custom login shell in schroot

According to the schroot man page: schroot allows the user to run a command or a login shell in a chroot environment. If no command is specified, a login shell will be started in the user's ...
1
vote
1answer
121 views

Can't losetup anything on armhf NAS

I'm pretty new to linux and chrooted my NAS with armhf architecture and tried looping device: losetup -f losetup: Could not find any loop device. Maybe this kernel does not know about the loop ...