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
1answer
14 views

grub-install hangs when rescuing a linux install via chroot

When attempting to repair a linux bootloader, grub can run into a problem. Running update-grub leaves the program hanging and never completes sucessfully.
0
votes
1answer
28 views

Fake /proc/cpuinfo when using chroot

I am trying to install some software using chroot for a Rpi image (pi-gen). Pi-Gen uses chroot to install them. Unfortunately when executing cat /proc/cpuinfo under chroot environment, i get the ...
0
votes
0answers
18 views

Pulling an Docker Image within a chroot environment

I am trying to create my own, custom Raspberry Pi image using Pi-Gen https://github.com/RPi-Distro/pi-gen Basically I was able to fulfill most of my requirements, but I got a problem while trying to ...
0
votes
1answer
16 views

Does chroot make effect on bootable usb-pendrive?

Let's suppose I put my Linux usb-pendrive inside my PC. I start the system and the I use chroot to apply same changes to the system. What happen if I reboot the usb-pendrive? Are the changes I made ...
0
votes
0answers
41 views

Why must a chroot be used to update the initial ramdisk (initrd)?

Recently I had to figure out how to encrypt an existing root partition using dm-crypt and LUKS and the solution requires fixing GRUB and initrd after the encryption. In the instructions to regenerate ...
0
votes
0answers
37 views

sftp and chroot on debian

I am experimenting with a server running Debian. It should replace my aging Apple server (and since the new Apple server is not a server anymore that is no longer an option). So far everything goes ...
0
votes
0answers
26 views

Setting up virtual users in vsftpd

I'm trying to set up virtual users for an FTP server in a Linux box, but I'm not sure if the server I've picked up (vsftpd) can do what I need. My requirements are: The FTP accounts are inside a ...
0
votes
0answers
24 views

VLC automatically opens when I plug in headphones

I'm on Ubuntu 16.04. VLC media player version 2.2.2 Weathermax. Every time I plug in my headphones, VLC media player opens. I'm wondering if I can disable this from happening.
0
votes
0answers
68 views

Gaining real su permission on gnu root debian instead of proot env?

Im running a samsung galaxy j110H, kitkat 4.4.4, rooted. Is it possible to attain real super user privillige on gnuroot debian instead of fakerootfs. Is there any way as in when I type in su; there ...
1
vote
1answer
3k views

nano command not found after entering chroot during arch install

I am new to Linux and running into a problem while trying to install Arch Linux on bare metal with UEFI. I have been following the installation guide on the Arch wiki and, like the title says, after ...
0
votes
1answer
33 views

Mistakenly added user 'ubuntu' to a chroot group and cant login to server anymore

Ok, So I have an ubuntu server setup with SFTP chroot. So, any user added to the group 'sftpusers' will be only able to use sftp commands on the server, today while testing rsync, i didnt think and ...
1
vote
2answers
139 views

AIX 6.1 SFTP: Allow chroot'd user to access files in location outside their home

Long-winded first posting, I have tried to be succint while providing details. I am working on an AIX 6.1 server where SFTP (via WinSCP) is already used by several service accounts to access files in ...
0
votes
0answers
53 views

Isolated Debian system using chroot for school

I am trying to set up a school system. I want the system behind a whitelist implemented in iptables. I want to run a full Debian GNOME distro. I want students to be able to install software with apt ...
0
votes
0answers
27 views

avahi-daemon fails to start in chroot i386 on raspberry pi

This is on a raspberry pi 3b+, with raspbian installed (stretch) I have installed a chroot according to this: https://www.novaspirit.com/2019/04/15/run-x86-arm/ After, I installed it, I planned to ...
0
votes
0answers
160 views

vsftpd can't login except if not chroot(ed)

I am trying to setup my vsftpd server to give users access to certain parts of the homepage. Specifically they have access to one directory in the "user" subdomain. I give you examples with 2 users. ...
0
votes
0answers
36 views

xforwarding from chroot doesn't work

I'm trying to setup X-forwarding from a chroot environment. The host is a remote VM and I'm using Xming(and xpra) on MS Windows to display the windows. Now, on my host (not in chroot) I executed ...
1
vote
1answer
146 views

Can't start Apache in chroot with systemctl but can run it manually on my own from Bash with no issue

How to keep my Apache webserver running (prevent from being killed off for some unknown reason) in chroot when launched with systemctl at boot? My setup requires multiple scripts and when I start the ...
0
votes
1answer
117 views

chroot /bin/bash not found. How to fix without mounting /lib?

I want to chroot into an environment but it doesn't work since it says /bin/bash is not found. I don't know why, the host is running the same Linux image and arch. I made it working by mounting /lib ...
0
votes
0answers
23 views

Cannot detect filesystem for / in chroot

I have a script that requires knowing the file system type by using df /. I'm running this script in a chroot centos7 environment running in a opensuse host, and it is failing because the file ...
1
vote
0answers
18 views

Docker images that don't contain a package manager

I typically think of docker containers as executable processes that get to carry with them little bits of "environment", such that nothing needs to be installed on the docker host. For instance, a ...
0
votes
1answer
49 views

PuTTy command script hangs after “chroot . sh”

I'm trying to automate a build with Putty, just ssh'ing into a VM and running a few commands by specifying a .txt file that contains the commands to run. One of my commands is chroot . sh and it ...
0
votes
1answer
258 views

chroot erase and overwrite the rootfs. Is it possible to mount a copy of /proc and /sys?

In my chroot I need /proc and /sys and /dev. I am happy to bind-mount /dev since it is a temp fs. But /proc and /sys are part of the rootfs. In my chroot I need to erase/re-format the rootfs (which ...
1
vote
1answer
34 views

virtualbox snapshot - is it a safe back-up if I want to over-write (dd to) sda1?

I want to do some testing useing chroot to overwrite sda1 (my main partition) in a ubuntu VM. Is taking a virtualbox snapshot a safe way to create a backup? i.e. in the VM I want to create a chroot ...
0
votes
1answer
142 views

readelf fails in qemu chroot when using absolute path

I'm trying to install java 8 SDK in a qemu emulated chrooted environment and I'm running up against the following error readelf: Error: /proc/self/exe: Failed to read file's magic number Readelf ...
0
votes
1answer
43 views

Is there a simple low-overhead way to install deb packages in a virtual environment?

When I'm working on some arbitrary project I usually need a couple of packages. For all the python packages I create a virtualenv so that once I'm done I can delete the whole thing, and it does not ...
1
vote
1answer
2k views

Why do I have to specify DNS when using chroot?

Last time when I chrooted from Live USB to my old broken system, I couldn't connect to Internet. In this tutorial, I read I should add OpenDNS to my /etc/resolv.conf if I use DHCP. How does DHCP (or ...
5
votes
1answer
3k views

Fixing '/dev/null: Permission denied' repeatedly in chroot

I've chrooted into an external disk with sudo chroot /mnt/disk, but almost everything I do (logging in, tab-completion, lessing a file, ...) results in an error mentioning /dev/null: Permission denied,...
0
votes
0answers
715 views

Creating multiple SFTP users who use different SSH keys to connect to the same chrooted directory?

I have an Ubuntu-powered server, which - among other things - acts as file storage/hosting (powered by nginx), so that if a file is put in /var/www/files.ourcompany.com/file.txt, it is publicly ...
0
votes
1answer
72 views

can't update computer inside chroot

I am repairing GRUB2. I entered the old system from Live Usb using chroot. (As explained here.) I tried to run apt update and it said it couldn't access any server. (At least it told my this for any ...
4
votes
1answer
4k views

How to run docker inside chroot

I have debian stretch installed in arm64 android phone in chrooted environment. I have installed docker-ce following these steps from here. On starting docker :: systemctl start docker returns this ...
0
votes
1answer
42 views

chroot an user to more than one directory in different locations

I would like to know how I can constraint a user to only be able to access and have RWX permissions to directories like /etc/httpd, /etc/php and /var/www/html as well as its own home directory. Also ...
0
votes
1answer
79 views

Steam In home steaming not working on Chrome OS (via crouton)

I installed Debian stretch via crouton, and after navigating through "locales" problems, mounting problems, and video problems, I managed to get it to work very well on my Asus C202. However all ...
0
votes
0answers
526 views

ssh chroot + putty = no such file or directory

did anybody have same problem? I was setting chroot for sshd (OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016; Debian Jessie) As a result WinScp logsin successfully, and putty closes with ...
0
votes
1answer
75 views

How to access system clipboard from a chroot environment?

I am running vim in chroot but I don't seem to have access to the host system's clipboard even if I do "+p. It works in the host system's vim. Is it possible to make the chroot environment recognize ...
3
votes
0answers
243 views

Bind mounts not visible in chroot

I am using a debootstrap envs on my Arch system. I bind-mount some directories from my home dir into the chroot fs home dir, ie. /home/user/foo → /stretch/home/user/foo. I can see the content from the ...
2
votes
1answer
170 views

need clarifications on chroot command

I am trying to understand chroot. I am trying to run just "ls" command in chroot environment. So i copied "ls" and "bash" and its dependencies(as shown by ldd) to corresponding bin, lib, lib64 ...
1
vote
1answer
1k views

Can not login through ssh on my machine

Whenever I add a user to the "sftp" group so I can use chroot I can no longer connect through SSH and it says: "Could not chdir to home directory /home/sftp_user: No such file or directory" and "This ...
1
vote
1answer
615 views

chroot mount real /root

I have sample question in Linux. I create chroot environment, but I want to have for example same /root for my real system and my chroot environment. When I take this command: chroot /mysystem I ...
0
votes
1answer
826 views

su in Debian chroot gives critical error (embedded system)

I'm trying to install Debian jessie inside a chroot on a embedded system (QNAP NAS with kernel 2.6.33.2). I successfully run debootstrap to install the base system and the chroot works correctly ...
1
vote
2answers
898 views

Is it possible to run a process in chroot with virtual /proc filesystem under Linux?

I need to run a process in a chroot with a virtual /proc filesystem, so the process is unable to get access to other processes running on the same host. The process must be run under root and have ...
0
votes
1answer
2k views

How to upstart Debian Chroot on Synology to run Homebridge

I have a synology diskstation that I want to use to run homebridge. I have got homebridge working by installing the debian package for chroot and installing all the necessary things in chroot to get ...
1
vote
1answer
1k views

/bin/bash (chrooted) no longer works

Previously all our web customers were setup to access their SFTP using the shell /bin/bash(chrooted). As of 1-17-17 it was working for everyone. The following monday 1-20-17 it was not. This issue is ...
3
votes
1answer
914 views

How to install arch linux packages with yaourt when invoked with docker build from Dockerfile?

I am trying to build my own jira container using official pritunl/archlinux image. I have already installed yaourt and committed that to rusk85/archbase. My Dockerfile looks like this: 1: FROM rusk85/...
4
votes
1answer
8k views

Error starting node.js localserver - undefined EventEmitter prototype

I'm trying to use Coder. Coder is an application developed by google based on node.js server. It was initially designed for the Raspberry Pi, but according to the Coder project in GitHub, it should ...
0
votes
0answers
215 views

Using rssh to chroot causes rsync (code 12) error

I'm configuring my home NAS to periodically pull down backups from another server. On the server is a dummy-user using the rssh shell configured to only allow rsync access. I'd like to also chroot ...
0
votes
1answer
366 views

How to find whether system uses systemd in chroot?

I was using the following command to check whether system uses systemd if [[ 1 == pidof systemd ]]; then But this fails in chroot since proc is not mounted. sh-4.2# pidof systemd sh-4.2# ps Error, ...
1
vote
1answer
684 views

How to chroot Arch from a Gentoo live cd?

I have a laptop with 2 OS partitions: 1 for Windows 10, 1 for Arch Linux. The bootloader is the Windows one, so I cannot start Arch. Now my Windows suddenly broke, so my laptop cannot startup normally ...
2
votes
1answer
802 views

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/...
1
vote
0answers
146 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
540 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 ...