Questions tagged [chroot]
a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root
148
questions with no upvoted or accepted answers
8
votes
2
answers
4k
views
debootstrap failing to mount /proc
I have researched this, and none of the answers (so far) on here, nor googling seem to match my problem.
Here is the situation:
I am running Xubuntu 12.04 as a base install, and am trying to set up a ...
8
votes
1
answer
2k
views
Mounting a network filesystem into schroot
I'm using a network file system (AFS) and I would like to also mount it into my schroot. Adding a line to /etc/schroot/mount-defaults, with bind or rbind in the options didn't help: schroot always ...
7
votes
0
answers
789
views
Is there a proper way to set up a copy-on-write based build env that use your live / as base files?
I'm trying to set up a build environment using chroot, but instead of downloading ubuntu base files, I want to use my live / as base files for the chroot and use c-o-w to redirect any changes made in ...
6
votes
0
answers
13k
views
chroot: failed to run command '/bin/bash': No such file or directory Ubuntu 18.04
I'm following these instructions to make a debian.img in a ubuntu 18.04 on a virtual box build
On the PC, create a folder and generate a formatted, mountable image.
Install a Debian Buster linux ...
5
votes
0
answers
387
views
How to cleanup Ubuntu SDK chroots?
I have many chroots created by Ubuntu SDK, automatically mounted at boot:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1,9G 0 1,9G 0% /...
4
votes
0
answers
3k
views
LTSP - thin client VS fat client - how does the root folder work?
There is plenty of information on the internet including here, but I could not find a specific discussion on it. Any comment is appreciated. Sorry if it is a very rookie question.
I installed Ubuntu ...
3
votes
0
answers
3k
views
Using apt-get install in chroot
I used debootstrap to create a chroot environment:
sudo debootstrap trusty trusty/
sudo chroot trusty
I'm using chroot. but command apt-get doesn't work:
I have no name!@user:/# apt-get install ...
3
votes
0
answers
11k
views
chroot: failed to run command ‘/bin/bash’: No such file or directory
To fix grub, I tried following codes:
sudo mount /dev/sd6 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/...
3
votes
0
answers
118
views
Can I use i386 Ubuntu to install ARM software?
I have an Ubuntu machine, and I am trying to figure out how to modify a root filesystem that's eventually going to be on an embedded system running on an ARM processor. I have just a bare fs at the ...
3
votes
0
answers
182
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-...
3
votes
0
answers
335
views
How can I set vsftpd user-specific access?
I'm using vsftpd (on 14.04) and I want to set user-specific access:
- admin has full access to home folder of all users
- standard user (everyone from group "users") has permission only for his home ...
3
votes
3
answers
2k
views
How to install program from Live-CD chroot?
I am using Lubuntu 13.04.
How can I install programs from a Live CD from chroot?
3
votes
0
answers
2k
views
What are the differences between jails and chroot?
I'm currently trying to point out the finer details between chroot spaces and jails. And clear up some of the controversy in the phrase "chroot jail."
So far I have chroot defined simplistically as "...
2
votes
0
answers
528
views
How can I change the timezone on a read only operating system protected by overlayroot?
I have an Ubuntu 16.04 installation mounted using overlayroot as a read only partition.
I also have a read write partition on the same drive.
I need to be able to change the timezone setting of the PC ...
2
votes
1
answer
676
views
How to correctly run graphical application in schroot with Qt and D-Bus?
I was trying to get Audex running inside 16.04 LTS schroot on the 20.04 LTS host.
The below method works normally for Gtk-based applications, I have tested it.
In current case I did the following:
...
2
votes
0
answers
130
views
Remote access with xfce4 installed on Chromebook ASUS CN60
I have ASUS chromebox CN60 with installed XFCE4.12 (Xubuntu). XFCE is automatically starting on chromebox startup with specific website in web browser. Everything is working good, but I have problem ...
2
votes
0
answers
1k
views
Why are some busybox commands in interactive mode not available in a chrooted environment?
I try to setup a most minimal chrooted environment using busybox.
I created a directory 'testRoot' and copied 'busybox' into it.
from this directory I execute:
sudo chroot ./ /busybox sh
now I have ...
2
votes
0
answers
898
views
getpwuid error with screen command for chroot user
The background is that I want to allow a chrooted user to execute a shell script in a detatched screen.
I created a chroot user and gave him a home directory. In this directory I made a /bin ...
2
votes
0
answers
207
views
Alsa chroot java program doesn't find microphone
I made a chroot environment from an architecture i386. Now I installed ALSA on it (alsa-base, alsa-utils, asound2). I mounted the proc,sys and dev directory too.
Then I tested my microphone with the ...
2
votes
0
answers
939
views
startx not working
I am attempting to install Ubuntu on an ASUS T100. However, when I boot it manually from GRUB, it crashes into an intramfs shell. I am able to mount the filesystem from the intramfs ASH shell and ...
2
votes
0
answers
270
views
OpenSSH chroot breaks ssh and ftp
I'm trying to set up a webserver with a restricted sftp connection. I've googled and followed several walkthoughs that all appear to be pretty much the same thing. Here are my steps:
Fresh install ...
2
votes
0
answers
766
views
Ubuntu for Android, Ubuntu for Devices, LinuxonAndroid project for Ubuntu on ARMv7 machine?
I've looked around but can't find any solid solutions or help on this topic.
I recently ordered a machine with an ARMv7 CPU (Cortex A-9, <= 1.6GHz, quad core). The machine also has a Mali-400 quad-...
2
votes
0
answers
677
views
How do I chroot an SSH user to their home directory?
I don't want to use jailkit. My OS is Ubuntu 14.04. I am setting up a user account on my server for a kid I tutor, so he can run a minecraft server. He will be using putty to ssh into my server, and I ...
2
votes
0
answers
2k
views
Why does mounting proc in my chroot fail during debootstrapping?
In a cleanly installed Ubuntu Raring machine I am trying to perform a debootstrap of another system. Here's the exact command:
http_proxy=http://192.168.122.1:8000/ debootstrap --arch=amd64 raring /...
2
votes
1
answer
4k
views
Network Manager missing after update: no connectivity
After an update and restart, I found that the network icon on the top is missing and so, I cannot connect to LAN, wifi, USB modem, nothing. Now, I am booting from a Live USB, then chrooted to my ...
2
votes
1
answer
3k
views
How to run apache2 in chroot jail setup
Ubuntu 14.04
I was trying to setup apache in chroot,but i can't found any related answer.
I was googling over a week but i can't get my answers
so some one please help me.....
Thanks in ...
1
vote
0
answers
24
views
sftp into chroot works fine, but debug messages reveil non-chroot authorized_keys absolute path
I have configured per-user chroot environments for SFTP to go into /somedir/jail/$user:
snippet from my /etc/ssh/sshd_config:
Match User myname
AllowTcpForwarding no
X11Forwarding no
...
1
vote
0
answers
276
views
Chroot into an encrypted ZFS installation from live media or alternatives
For some reason, usb-guard decided to remove all of the rules I have written that allowed my keyboard and mouse. I've had this happen before from myself messing up the configuration, but this setup ...
1
vote
0
answers
297
views
Run Ubuntu Touch in chroot container on Android
On my Fairphone 4 I got Ubuntu running in a chroot container using Linux Deploy.
I'd like to try out Ubuntu Touch, but I don't want to wipe my phone just to do that.
Is it possible to either run ...
1
vote
0
answers
426
views
dbus package installation is failing in ubuntu(22.04) chroot environment
I am trying to create a customized ubuntu iso using the ubuntu(22.04) chroot virtual environment.
In chroot environment, facing issues while installing dbus package. Error logs are attached below.
...
1
vote
0
answers
174
views
Debugging a binary inside a snap
I am trying to run a binary that's from a snap through strace to debug its workings.
Because the executable is accessed via /snap/bin/prog which is symlinked to /usr/bin/snap I will only see snap's ...
1
vote
0
answers
1k
views
How do I chroot into a partition on which Ubuntu 20.04 is installed to run update-grub on it? Grub menu is not appearing with Windows 10 dualboot
Hello dear programmers and users. This is going to be a long and descriptive question with a series of smaller questions leading up to the main question so please read with some patience. I have a ...
1
vote
0
answers
475
views
Upgrade Ubuntu 20.04 to 22.04 in chroot'ed environment?
Currently I use a Ubuntu 20.04 running on my Android phone. It is a chroot'ed environment running as a subsystem under Android. It is called 'Andronix' which cooperates with 'Termux' a package based ...
1
vote
0
answers
225
views
What is the first line of the output of `ldd bash` and why is not required when setting a new root directory to use with chroot?
I am following a tutorial about how to use chroot and set up a jailed dir. The process is to copy bash and the libraries it depends on into the 'jail' dir. To find the libraries bash depends on I ...
1
vote
0
answers
154
views
Can I set up a samba share to a chroot jail user
I am using U unti server 18.04.
I have a chroot jail for untrusted users. I would like to set up a samba share to a chroot directory. Is this possible?
1
vote
0
answers
308
views
How to run some graphical i386 apps on Ubuntu 18.04 (ARM64) / xfce4 / jetson nano
I'm trying to run some graphical i386 apps on ARM64 / xfce4 / jetson nano. I have configured the I386 / bionic chroot environment following and adapting a little bit this tutorial :
https://www....
1
vote
1
answer
364
views
Chroot SFTP user in Ubuntu
Good morning, I have a basic Ubuntu EC2 webserver with Apache, and several different websites on it. I log in to it via SSH with the access key provided by AWS to do basic stuff (I am a developer, not ...
1
vote
1
answer
535
views
Boot process absolutely destroyed... (Ubuntu 20.04)
The problem: Unable to boot into Ubuntu.
Causes:
Compilation of a package, (NekoProjectII/W) which had errors and in turn made the system unbootable, the error code was sbin/init not found
Tried to ...
1
vote
1
answer
2k
views
Executing a script with chroot; permission denied
I want a script to execute a few commands in chroot. So, like this answer proposed scripting chroot, how to? I added the following part in my script, creating a .sh file with the commands I want it to ...
1
vote
0
answers
49
views
While updating video drivers something went wrong, get only a "initramfs" prompt but can't use keyboard!
I was trying to use "ubuntu-drivers autoinstall" to upgrade my Nvidia drivers to 440, when the system (Lubuntu 18.04LTS, Dell Studio XPS 8100, 16GB ram, 1TB hard disk) just hung. I went out, came ...
1
vote
0
answers
817
views
Replace Chrome OS and install Ubuntu on an Lenovo C330 ARM processor laptop
I have tried everything. Developer mode and cd;bash <(curl https://johnlewis.ie/flash_cb_fw.sh) which just restarts my laptop and beeps. I've tried booting from USB but it just beeps when I try ...
1
vote
0
answers
2k
views
Missing operating system. error: unknown filesystem grub rescue
I was installing hyperledger fabric, on Ubuntu 18.04.3 Desktop, through sudo -E, of this file https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh and of another similar ...
1
vote
0
answers
2k
views
Ubuntu 18.04 chroot locale can't set
I am installing a Ubuntu 18.04 chroot on a Debian 8 system, using ubuntu-base-18.04.3-base-i386.tar.gz as the base (found from the Ubuntu website).
I mount the /sys and /proc directories into the ...
1
vote
0
answers
5k
views
Cannot start services : Running in chroot, ignoring request
I am working with Ubuntu Core using snap classic mode.
I want to use some services, like Docker. I managed to install it, but when I try to start it (with sudo service docker start) or just even get ...
1
vote
0
answers
232
views
Why there is no sbin folder in chroot jail path environment variable?
I am running Ubuntu 14.04 in a chroot jail and the value in /etc/environment is:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games".
However, whenever I ...
1
vote
1
answer
470
views
How to automount with a chroot?
So in a chroot I have a /etc/fstab file. If I run mount -a in the chroot, it mounts the partitions listed. However, even when using the auto option, they do not mount when entering the chroot.
What ...
1
vote
0
answers
1k
views
Changing hostname (with hostnamectl) in chroot environment does not work (Iso customization) Ask
I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says:
Failed to create bus connection: Couldnt find file or folder
Then I tried changing it ...
1
vote
0
answers
292
views
In ubuntu 18.04 LTScustomize my background from installation
I want to know how to customize my background from installation in ubuntu 18.04 LTS.
I have installed cubic for live cd creation.
How could I do this?
1
vote
0
answers
538
views
Configuring services in Cubic chroot
There's an excellent "using Cubic" guide already posted, but it didn't get into how to configure services in the Cubic chroot. For instance, I would like to pre-configure a RabbitMQ server so that it'...
1
vote
0
answers
584
views
schroot exit error: 10mount: umount: /<chroot_key>/<home>: device is busy
Ubuntu: 14.04.5 LTS (GNU/Linux 3.19.0-25-generic x86_64)
Schroot: schroot (Debian sbuild) 1.6.8
There is a problem on schroot environment. Does someone know the root cause of this issue? It ...