Questions tagged [chroot]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k 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 (...
alex's user avatar
  • 11
0 votes
0 answers
552 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 ...
VaTo's user avatar
  • 124
0 votes
2 answers
1k views

Have Arch Linux, want slack, must keep both; no cd, no usb or money; can chroot, pre-partitioned: GPT

I have a laptop with Arch Linux on it [averagejoey2000@JoeyHobbyPCarchLinux arch-install-scripts]$ lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 596.2G 0 disk sda1 8:1 0 ...
averagejoey2000's user avatar
7 votes
2 answers
1k views

How to distinguish 'syscall' from '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 ...
Criyle's user avatar
  • 71
0 votes
1 answer
295 views

Package downgrade from live environment

I run arch Linux on an hp laptop. I installed a graphical login manager (gdm) and during boot, the kernel unpacks, systemd starts, but when it attempts to start my login manager "An error has ...
averagejoey2000's user avatar
0 votes
1 answer
494 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 ...
dacracot's user avatar
  • 343
1 vote
0 answers
1k 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 ...
monksy's user avatar
  • 1,731
1 vote
0 answers
105 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 ...
kinesis's user avatar
  • 11
1 vote
2 answers
3k views

Chroot ssh user to home folder results in Connection refused

I'm trying to give someone ssh access to a (Ubuntu 14.04) server I've got, but I want to limit them to their own home folder. So I'm trying to follow this tutorial. I first created a user (sudo ...
kramer65's user avatar
  • 1,434
1 vote
1 answer
5k 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 /var/lib/apt/lists/...
JimmyHo's user avatar
  • 11
1 vote
0 answers
407 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 ...
Benji's user avatar
  • 11
0 votes
1 answer
201 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 ...
Roxerio's user avatar
  • 101
0 votes
1 answer
652 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.
fameman100's user avatar
1 vote
2 answers
1k 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 ...
user avatar
1 vote
1 answer
586 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 ...
Lagrange's user avatar
  • 167
7 votes
1 answer
11k 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 ...
Marek's user avatar
  • 71
9 votes
2 answers
22k 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 ...
user2284570's user avatar
  • 1,843
57 votes
9 answers
134k views

Start a systemd service inside chroot from a non systemd based rootfs

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 chroot,...
user2284570's user avatar
  • 1,843
12 votes
1 answer
17k 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 Apache2/...
bashintosh's user avatar
5 votes
2 answers
8k 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 ...
ekaqu's user avatar
  • 153
6 votes
2 answers
7k 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 ...
minghua's user avatar
  • 618
1 vote
0 answers
2k 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 ...
Darren's user avatar
  • 186
3 votes
3 answers
2k 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 right—...
TDrabas's user avatar
  • 186
0 votes
1 answer
1k 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 '...
Nick's user avatar
  • 103
2 votes
0 answers
2k 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 ...
Ingwie Phoenix's user avatar
1 vote
1 answer
838 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 ...
Sam Kong's user avatar
  • 217
0 votes
1 answer
438 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 (...
user1936123's user avatar
6 votes
2 answers
3k 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 ...
lmat - Reinstate Monica's user avatar
1 vote
0 answers
1k 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 ...
blaize9's user avatar
  • 11
0 votes
1 answer
2k 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 ...
CogDissonance's user avatar
2 votes
1 answer
2k 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 ...
SiLeX's user avatar
  • 103
5 votes
2 answers
7k 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 tmp/tarball/opt/...
Lee Hambley's user avatar
2 votes
1 answer
336 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 ...
njahnke's user avatar
  • 123
2 votes
1 answer
642 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 ...
amin's user avatar
  • 125
0 votes
1 answer
126 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. ignite@ignite:~/...
user6363's user avatar
  • 143
2 votes
2 answers
7k 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 ...
Alan Evangelista's user avatar
1 vote
1 answer
788 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 ...
Carsten Scholtes's user avatar
1 vote
0 answers
57 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 ...
Trev0r's user avatar
  • 19
2 votes
1 answer
2k views

Chroot based on group name

I have a *nix system on which I want to get a SFTP chroot configured. Let's say there are three users, users from the same country can read and write the files from their countries, but should be ...
JP.'s user avatar
  • 223
1 vote
2 answers
9k 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 ...
user1783979's user avatar
0 votes
1 answer
899 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 ...
Summer_More_More_Tea's user avatar
7 votes
1 answer
16k 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 ...
TrueZeal's user avatar
3 votes
0 answers
390 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 ...
philcolbourn's user avatar
0 votes
0 answers
1k 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 $...
dzervas's user avatar
  • 237
5 votes
2 answers
6k 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.
Muktadir Miah's user avatar
2 votes
1 answer
721 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 ...
Eric's user avatar
  • 31
1 vote
2 answers
6k 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, ...
arlomedia's user avatar
  • 243
1 vote
3 answers
224 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 ...
HappyDeveloper's user avatar
0 votes
1 answer
202 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 ...
drumstick's user avatar
1 vote
0 answers
110 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 ...
mkvcvc's user avatar
  • 111