Questions tagged [chroot]
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree.
602 questions
2
votes
0
answers
97
views
"cannot execute: required file not found" when chroot to a rootfs with different architecture
I bootstrapped an arch x86_64 rootfs on arch linux arm vm with qemu-x86_64 binfmt registered and copied static qemu-x86_64 to the same path in the chroot:
[root@archlinux ~]# cat /proc/sys/fs/...
0
votes
1
answer
93
views
proot + busybox / Ubuntu - can't chdir("/home/user/Downloads/Proot/./.") in the guest rootfs
I'm trying to proot absolutely minimal environment in Ubuntu (as an initial step for further activities), but I can't solve following error:
proot warning: can't chdir("/home/user/Downloads/Proot/...
1
vote
0
answers
170
views
Debian 12 Won't Boot - Kernel Panic
After much Googling and troubleshooting I've given up.
I've got Debian 12 running on an old HP Micro 8.
LVM is configured:
sda 8:0 0 1.8T 0 disk
`-sda1 ...
0
votes
1
answer
288
views
Log management using SFTP with openssh-server
I'm struggling to find a solution regarding this problem :
My goal is to set up a sftp server on a Debian 12, there will be several directories corresponding to each departement of my firm, every ...
1
vote
1
answer
71
views
Fedora 38->40 upgrade failed, /bin/bash requires glibc_2.38
Per the title, I upgraded my desktop from Fedora 38->40. That part was successful.
I was going to upgrade to Fedora 41, but new dependency errors appeared that seemed tied to sagemath, which I had ...
-1
votes
1
answer
130
views
SFTP + ChrootDirectory: Is it possible to prevent a user from exiting a folder?
currently, the user connects via SFTP to the server and is placed in the files folder. Is there a way to prevent them from exiting the files folder?
sshd config for the user sftp:
Match User sftp
...
0
votes
1
answer
94
views
Failed to umount oldroot after `pivot_root` and `chroot` in Linux
I am working on an embedded Linux system (kernel-5.10.24), and busybox as init. I created 2 rootfs partitions in system, I want to use pivot_root and chroot to change rootfs between them.
When the ...
0
votes
2
answers
177
views
Why doesn't my live USB boot partition show up as a 'Linux filesystem'?
I am trying to follow the steps on https://wiki.debian.org/RescueLive to recover my system which is currently not booting. I've created and booted a live version of Debian on a USB stick. However when ...
0
votes
0
answers
35
views
Weird output of mount/findmnt command from inside a chroot jail
On my Linux system I entered a chroot jail using chroot(1) and then mounted a procfs instance on /proc from there.
Now if I do cat /etc/mtab from inside the chroot jail, it shows the full list of ...
0
votes
1
answer
477
views
How to change password offline via chroot or any other method?
My friend did not use his (dual-boot) Linux Mint 20 in a long while, and forgot password to his system.
How can one change password offline, connecting his SSD to my Debian OS, I suppose likely via ...
0
votes
0
answers
45
views
QEMU arch-chroot using external custom kernel
I've made an ArchLinux RootFS for zynqmp like here. But I haven't installed kernel inside RootFS and deleted hte one which is default, as I want to change kernels frequently, so I've placed it in BOOT ...
0
votes
1
answer
146
views
Chroot on Linux server for user login
I have set up Debian chroot environment on my openSUSE server.
So, the regular users have a playground and can install packages without affecting the main system. It's for home use only so no one else ...
0
votes
0
answers
123
views
Allowing SSH/SFTP access to only part of file system
I want to grant a (remote support) user SSH or SFTP access to the /var/www/html folder (and all sub-folders) on my system. I don't want them to have access outside this directory. As well, the ...
0
votes
1
answer
160
views
Chroot: Write access to an SFTP directory by non-root users?
Task given: Set up an SFTP server for ~100 clients
and fill their ./in directory with pricelists.
The pricelist per client is updated and maintained
by a different user-account (≠root) in the normal ...
-7
votes
3
answers
489
views
Remove chroot outright
So chroot needs to go as after days of ... "research" it doesn't properly support listing an index unless you do some crazy long command and the program has to be running to even be listed. ...