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

learn more… | top users | synonyms

0
votes
0answers
6 views

Add git access to /bin/bash (chroot) on Ubuntu, using Plesk

I have a couple users who wish to use git, they are allowed shell access but are chrooted into their own directory. I assume there has to be a way without exposing options to any shell at any level to ...
1
vote
1answer
83 views
+100

CentOS SFTP chroot

I've some issues chrooting an SFTP access for a client. I can access the directory, but the problem is I can't read / write, I can just access the directory. Below is what I've done : # cat /etc/...
0
votes
0answers
30 views

New Linux Subsytem on Windows, can we chroot?

I want to chroot into my existing Ubuntu Gnome 16.10 from new windows insider bash. the Main problem is there is no output for lsblk or blkid. so I tried "Paragon EXT4 drivers" and "ext2fsd" to ...
1
vote
0answers
21 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
1
vote
1answer
71 views

How to drop privileges in a Debian Chroot?

I'm testing some software under Debian X32. Its a chroot environment, and its entered upon as root. Some of the tests are failing because of the root account: make test ... # Failed test 'Testing ...
0
votes
0answers
11 views

ls command output not in ansi 16 colors in chroot

I am using chroot to work on a Centos 6.x machine. However I find that the ls output comes as the standard blue green color not the ANSI 16 colors configured. Is there a reason why it doesn't take ...
0
votes
1answer
69 views

how to mount chroot /proc on ubuntu start

In order to run java inside chroot environment I have to mount /proc file system using the following command mount -t proc none /proc inside the chroot environment or mount -o bind /proc /path/to/...
1
vote
0answers
19 views

exiting chroot leads to getpt failure

On a Debian Jessie machine I have a rootfs image which I chroot in this way: mount myimage.img /mnt/myimage cp /usr/bin/qemu-arm-static /mnt/myimage/usr/bin/ mount --rbind /dev /mnt/myimage/dev mount ...
0
votes
1answer
84 views

SFTP chroot: sshd_selinux_copy_context: getcon failed with Permission denied [postauth]

I'm stucked with creating SFTP chroot. I'm able to log in, but i'm getting "Permission denied" whatever I try. sftp webadm@<ip>: webadm@<ip>'s password: Connected to <ip>. Changing ...
0
votes
1answer
32 views

How to Access `/dev` From Inside a `chroot` Jail?

     How can one access /dev from within a chroot jail? I'd like to know how to do this on OS X v10.11.5 'El Capitan,' in particular. I've already tried to create an ...
0
votes
1answer
37 views

openssh with virtual users and chroot

I'm looking for a way to run a opensshd offering sftp to users as a unprivileged user e.g. on port 8022. This opensshd should take something like a customer passwd file which can include information ...
0
votes
1answer
24 views

How to enable shortcuts (copy-paste) inside chrooted java app?

I instaled java-based app Lotus Notes inside ubuntu 12 chroot on debian host systems. I run it with enabled xhost+ on based system How to enable Ctrl+C, Ctrl+V shortcuts inside Lotus Notes. The ...
0
votes
0answers
14 views

Code Execution From Live USB's

For the purposes of education, I am trying to work out how to execute code onto a hard drive that has been mounted onto a Linux live USB. So far I have downloaded a copy of Ubuntu, and just run the ...
1
vote
0answers
58 views

creating linux device files for bootstrap

I'm currently independently researching device files as a part of learning more about the Linux system in depth. My current goal is to bootstrap Debian Linux through cdebootstrap. I followed the guide ...
1
vote
1answer
172 views

how to mount as read-write filesystem and not read-only

So, I'm trying to install gentoo in a virtual machine. I ran into this problem and began researching what the answer might be. The file system is read only. I can't mount it as read-write. I'd rather ...
0
votes
1answer
73 views

How to make a new SSH user for linux which will allow the user to access only that folder and cannot go back to other folders [duplicate]

How can i make a new SSH user for linux (Ubuntu) which will allow the user only to access that folder and not to go back to other folder, I have searched many tutorials/support for this but those all ...
0
votes
1answer
39 views

Where do we put “mount -t proc …” in a Chroot environment?

Please forgive my ignorance... I have a number of Debian Chroot environments for testing software. They were necessary due to our package maintainer testing us under the same. My test scripts use ...
0
votes
1answer
34 views

Install stuff in a schroot

I have a question regarding chroots: say I have a program compiled and built into a root file tree structure, ex: . ├── bin │ └── software ├── etc ... That is, to install this, I'd have to merge ...
1
vote
0answers
39 views

setting up mirrorlist for pacman.d in chroot / installing arch to usb stick

I am new to ArchLinux and—moreover—deeper linux noodling. I am following the guide on the Arch Wiki. I am at a step where I set up the mirror list for repositories. I have my mirrorlist file in ...
0
votes
1answer
634 views

Compiler tools, execv and “exec format error” under s390x chroot

I have a Debian 8 x86_64 machine with two chroot environments. The first is armel and the second is s390x. armel was installed last week, and s390x was installed recently. armel is fine both before ...
0
votes
1answer
80 views

Emacs in a Debian 8 chroot environment?

I'm working with a Debian maintainer on a failed self test for a software package under ARMEL. The maintainer was kind enough to help me duplicate his environment. When I attempt to add http://ftp....
0
votes
0answers
35 views

Roll back to libc6-amd64 using a live cd and chroot on ssd with GPT filesystem

I was attempting to follow a steam guide to install a dedicated game server. See my original post here. Basically I really messed up. I attempted to roll back but when it downgraded my network ...
1
vote
1answer
17 views

Linux unattached chroot or directory?

Would it be possible to chroot or otherwise create an unlinked(in the main root file system) directory? From what I understand, the kernel automatically deletes any file/folder that has no link in the ...
0
votes
1answer
107 views

Is running ldconfig inside fakeroot possible?

I am trying to run debian wheezy in chroot (got debian files from https://github.com/tianon/docker-brew-debian/blob/02108ee636f54b504e2aec4ee7bb59a2de8a5b99/wheezy/rootfs.tar.xz) That is the way i'm ...
1
vote
1answer
84 views

Empty Boot folder on chroot Debian

I have wanted to create a custom livecd of Debian. I created a basic Debian (jessie) with debootstrap and began to configuring it. When I wanted to get vmlinuz and initrd files, I could not find them ...
0
votes
1answer
307 views

Value too large for defined data type

I am following this guide on how to chroot arch linux in my android device. Welcome back gnu! - My revenge on Android In case you do not read the guide, I made a linux.img file on my pc, using dd ...
4
votes
0answers
244 views

How to create ftp restricted user with vsftpd? (by terminal in ubuntu)

I have installed ubuntu 12.04 with vsftpd. I need to create ftp users able to access only directories like /var/www/nameDirectory. I though it was a very basic feature, but seems not... I tried to use,...
2
votes
1answer
202 views

Unable to execute root commands inside an openvpn script

I'm using the openvpn option client-connect to run a script when a client connects. The script works fine when I use simple commands but when I add commands that need root privileges it doesn't work ...
0
votes
1answer
296 views

Chroot into Arch Bootable USB

I have a bootable USB drive with Arch Linux recently installed on it (Linux kernel 3.19.2). I want to plug it in to my computer and chroot into it (or possibly run it inside a container, using systemd-...
1
vote
1answer
112 views

“Cannot open audit interface” upgrading libuuid1 — is selinux confused?

I have a Debian chroot on a Linux system running an alternative Linux distro. It's always worked fine in the past but in the past few months I've found myself unable to upgrade libuuid1. Instead it ...
1
vote
1answer
158 views

Starting a chroot and drop into nonprivileged user home

I need to (temporarily) jail a non-privileged user. I tried something like: sudo chroot --userspec=mcon:users /wherever/chroottarget /bin/bash -i This almost works, but it doesn't set env vars (...
1
vote
0answers
268 views

Set up sftp mysql authentication with chroot

How do I set up an openssh SFTP server that authenticates against a MySQL table where the users are jailed? Each user will need to have its own jail: /home/sftp/john /home/sftp/jane etc.. However ...
3
votes
1answer
2k 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, http://...
0
votes
1answer
130 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
0answers
166 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
2answers
503 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 ...
4
votes
1answer
130 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
184 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 ...
1
vote
0answers
78 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
25 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
2answers
1k 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 ...
0
votes
1answer
337 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/...
1
vote
0answers
281 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 ...
0
votes
1answer
47 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
1answer
157 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.
1
vote
3answers
268 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 ...
1
vote
1answer
143 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 ...
2
votes
0answers
1k 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 ...
2
votes
2answers
5k 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 ...