Questions tagged [chroot]
chroot is a command on UNIX-like systems which runs a process under a different root directory.
179
questions
0
votes
1
answer
276
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 ...
5
votes
1
answer
9k
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
1
answer
540
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
1
answer
90
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
0
answers
737
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 ...
1
vote
1
answer
159
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 ...
5
votes
0
answers
427
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
1
answer
370
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
1
answer
4k
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
1
answer
1k
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
1
answer
2k
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 ...
2
votes
2
answers
2k
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
1
answer
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
1
answer
2k
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
1
answer
2k
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
1
answer
10k
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
0
answers
353
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
1
answer
1k
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
1
answer
1k
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
1
answer
1k
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
0
answers
171
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
1
answer
794
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
1
answer
2k
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
0
answers
166
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 -...
1
vote
1
answer
3k
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 ...
1
vote
2
answers
1k
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 ...
3
votes
1
answer
4k
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
1
answer
165
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
0
answers
125
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
0
answers
471
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 ...
2
votes
1
answer
6k
views
How do I mount as a read-write filesystem and not read-only?
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
1
answer
712
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 ...
1
vote
1
answer
1k
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
1
answer
102
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
0
answers
345
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
1
answer
4k
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
1
answer
397
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
0
answers
162
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
1
answer
65
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
1
answer
1k
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
1
answer
713
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
1
answer
1k
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 ...
5
votes
0
answers
698
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 thought it was a very basic feature, but seems not I tried to use, ...
2
votes
1
answer
2k
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 ...
1
vote
1
answer
3k
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
1
answer
891
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 ...
4
votes
2
answers
1k
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
0
answers
1k
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 ...
4
votes
1
answer
4k
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://...
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 (...