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

learn more… | top users | synonyms

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 : ...
1
vote
2answers
990 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 ...
1
vote
2answers
1k 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
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
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 ...
4
votes
1answer
33 views

How to distinguish 'syscalls' form 'int 80h' when using ptrace

As far as I know, ptrace can only get syscall number by PTRACE_SYSCALL, but syscall number is different in x86 and x64. So is there any way to figure out where this syscall real origin? I am now ...
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 ...
0
votes
1answer
12 views

How to hide subdirectories within chrooted directory from users who don't have access

Apologies if this problem has been answered before / elsewhere. I've had a hunt around but am unable to find anything. If so please point me in the right direction. I'm running a linux ftp server ...
0
votes
1answer
40 views

Passwordless linux account converted to Chroot jailed sftp now requires password?

I created a user and did an RSA key exchange for a passwordless connection. This worked. I also created a chroot jailed sftp only user. This also worked. I then created a third user. I set up the ...
0
votes
1answer
306 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 ...
0
votes
1answer
66 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. ...
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 ...
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 ...
1
vote
0answers
35 views

Mounting /dev/shm in a Gentoo chroot on Xubuntu 14.04

I'm trying to install Gentoo, and instead of using one of the bootable minimal install CDs provided by Gentoo, I'm using a chroot in Ubuntu. I'm mainly following the instructions outlined here, ...
1
vote
0answers
24 views

How to get out of a chrooted environment in ArchLinux

I'm attempting to install ArchLinux via SSH. At the moment I'm not at the machine, but I do have root access to it. I have SSH setup in the Chroot environment (arch-chroot). Is there anyway, while ...
1
vote
0answers
16 views

Is there a way to use ACL to deny access to folders by user, preferrably by making them invisible?

Is there a way to use Linux's Access Control Lists feature to deny access to folders by user, preferrably by making them invisible? This is needed for a chroot SFTP environment where we want to block ...
1
vote
0answers
129 views

Unity closes on Ubuntu Logout, but does not complete logout. (Crouton on Chromebook)

I've got a Chromebook 14 "dual-booting" Ubuntu 14.04 using Crouton with the stock Chrome OS. I've had it like this for a while with everything operating fine. As you know, Linux Distros are kind of ...
1
vote
0answers
422 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 ...
1
vote
0answers
540 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
0answers
523 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 ...
1
vote
0answers
27 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
47 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
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 ...
0
votes
0answers
19 views

Howto write in chroot on Secure FTP(sftp)

As I understood, directory for chroot must have permission 755, and must be owned by root. But 755 mean that only owner(root) have acces for write to this folder. But what if I have user web, with ...
0
votes
0answers
15 views

mount a specific dev device under chroot

I want to use a specific disk under chroot. I know this command: mount -o bind /dev /mnt/chroot/dev This command populates all devices under chroot. But I want to use only few devices under ...
0
votes
0answers
36 views

Is password-less access to SSH using chroot setup possible?

I was able to log in into a ssh server using public and private keys without using a password. I was able to also setup chroot and jail a new user and avoid that the user could connect via ssh but ...
0
votes
0answers
16 views

OS under chroot retaining /boot from host OS

The system is Fedora 20. At to bottom of the posting is a list of the script to mount the chroot object directories. Below is a df list from the top level OS before chroot command. After the chroot ...
0
votes
0answers
9 views

GRUB Booting from subdir Issue

I am encountering a boot issue: My primary linux distro was not installed on / but (I don't know why the developers chose it) on /@/ which implies that my rootfs lies under /@. However when I ...
0
votes
0answers
20 views

chrooting ngIRCd on Debian

I am wanting to set up an IRC server on a Linode instance. I'm a bit nervous about the IRCd being a possible attack vector on the system. So in addition to using a non-standard connection port, I want ...
0
votes
0answers
90 views

ubuntu on chroot apt-get update fail - Unable to parse package

When I chroot under Ubuntu 12.04 and run apt-get update in my chroot home, I get: 100% [21 Translation-en gzip 0 B] [22 Translation-en bzip2 3E: Unable to parse package file ...
0
votes
0answers
22 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
0answers
43 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
0answers
537 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
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 ...