Questions tagged [chroot]
a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root
327
questions
1
vote
0
answers
16
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 ...
0
votes
0
answers
31
views
How to update to the latest bionic beaver in chroot environment
I've inherited a load of source code from some contractors. This build works on Ubuntu 18.04.06. Trying to build on previous versions of Ubuntu do not work as package dependencies are missing and the ...
0
votes
0
answers
14
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?
0
votes
0
answers
49
views
not able to cross compile openvpn in arm64 docker container in ubuntu 20.04 focal distribution
Able to enter arm64 enviorntment by "docker run --rm -it arm64v8/ubuntu" in ubuntu Ubuntu 20.04.4 LTS focal distribution
git clone https://github.com/mattock/sbuild_wrapper.git
added arm64 ...
0
votes
0
answers
38
views
Undo `mount --rbind /dev ./chroot/dev`
I've executed mount --rbind /dev ./chroot/dev for using in chroot'ed environment.
Then I wanted to unmount it and executed umount ./chroot/dev but it fails with error:
umount: ..../chroot/dev: target ...
0
votes
0
answers
25
views
Chrooted Docker Rootless Possible?
I am on ubuntu 20.04 running Virtualmin 6.17. I have docker-ce rootless successfully installed with a non-sudo user.
My question is:
Is it possible or (worth the effort) to run docker-ce rootless ...
0
votes
0
answers
24
views
How to keep synchronized in real time two Ubuntu installations?
I'm looking for the better tool /method / technique that can help me to keep synchronized in real time two Ubuntu installations. I want that every change I make to one of them will be immediately ...
0
votes
0
answers
61
views
apt update fails within proot
I'm building an image for an arm64 machine in a docker environment. I get the 20.04 base system by starting with
debootstrap --components=main --arch=arm64 --foreign focal ./mnt http://ports.ubuntu....
1
vote
0
answers
24
views
Trouble installing packages in a fresh chroot [duplicate]
I created a chroot using the instructions here, substituting focal for lucid. Now I'd like to start installing packages, starting with Python, but I'm not sure what kind of setup I need to perform ...
0
votes
0
answers
52
views
Mistakenly used rm - rf in / but cancelled .How to recover now.? [duplicate]
I have unknowningly used rm -rf in the ubuntu 18 / and cancelled soon .. within that moment some folders for deleted including /bin /sbin /opt /etc .
But we still have /usr /lib / home /root /var ...
0
votes
1
answer
96
views
How can I log in via ssh into a chroot
I have a Synology NAS and was frustrated with the available packages. So I installed a Debian chroot (after a lot of googling, as I am just a normal user). This is great. Now I would like to work ...
0
votes
0
answers
78
views
sudo chroot return bus error
I'm using a liveUSB to fix my boot problem with boot-repair:
Boot repair enable a repository containing grub2 packages
But I'm stuck at the sudo chroot /mnt command.
It returns a Bus error and without ...
0
votes
0
answers
505
views
chroot failed to run command
Now after 2 days of pulling my hair it is obvious for me that on other ubuntu machine I can chroot into a VM client (VBOX).
I am trying to chroot from live media to a ubuntu VM client.
I mounted:
...
0
votes
0
answers
56
views
SFTP read-only access to another directory
My Goal:
I have sftp user sftp1 which has chrootdir to /sftp/sftp1.
I want to add read-only access via sftp to user sftp1 on directory which is /home/user2/some/path/to/directory
Expected result:
User ...
0
votes
0
answers
94
views
APT Update - what happens after fetching?
I am running a docker container in which I then chroot into a SDcard image of another architecture.
host -> docker -> chroot -> mounted image
In order to install some packages on the image I ...
0
votes
1
answer
320
views
What happens if I do `mount --bind /dev` to a chroot directory and I remove it inside the chroot directory?
What happens if I do mount --bind /dev to a chroot directory and I chroot to the chroot directory and inside remove the /dev/ folder. I thought my host's /dev directory will be deleted but the web ...
0
votes
0
answers
213
views
how to disable secure boot in crouton
I am having problems with ubuntu focal fossal XFCE enviorment, more specific Crouton.
And if you don't know what a crouton is it makes a chroot inside chrome os.
So i am basicly running a chroot ...
3
votes
1
answer
670
views
how to make ubuntu install iso file for arm64 machine on x86-64 machine?
I'm trying to install ubuntu 18.04 on a qemu virtual machine which is a modified version of qemu's arm virt machine.
I checked that I can install ubuntu 18.04 on arm virt machine as directed here, a ...
1
vote
1
answer
851
views
SystemD service for running deamon in chroot
I have set up my raspberry pi running ubuntu 20.04 server so it can run teamspeak with box86.
To do that I set up a chroot in ls /srv/chroot/focal-armhf/ with debootstrap. In that directory I compiled ...
0
votes
1
answer
225
views
Can not delete chroot after aborting it's creation
I am trying to set up a chroot and I ran
sudo qemu-debootstrap --arch=amd64 stretch /srv/chroot/focal-amd64
during the second stage i realized that I wanted focal, not stretch. Copy & paste error....
0
votes
0
answers
631
views
Command `apt-get update` runs with error "Temporary failure resolving 'ports.ubuntu.com'" on Ubuntu 18.04, while working normally on Ubuntu 14.04
Recently I tried to use chroot command to deploy ubuntu on my rooted android tablet, and everything went well (network and executable commands) with ubuntu 14.04 from http://ports.ubuntu.com/. But ...
0
votes
2
answers
827
views
chroot : sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I have this since I tried to give a chroot user sudo permissions.
The commande I ran :
chown root:root /usr/bin/sudo
chmod 4755 /...
0
votes
2
answers
105
views
How to install Ubuntu in a file?
Everything in Linux-based systems is a file. Everytime I install Ubuntu, I choose a root partition. Now, I want to create a root filesystem, but in a file, for example ~/ubuntu.img. I've got another ...
0
votes
0
answers
589
views
debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: No locks available [duplicate]
I want to run some x86_64 apps from jetson nano,for example google chrome and teamviewer and I want also to copy heavy files from the sd card of the nano on a larger disk on the desktop PC. For this ...
1
vote
0
answers
201
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
99
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
365
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 ...
0
votes
2
answers
2k
views
How to install Ubuntu from casper/filesystem.squashfs with chroot?
I want to install Ubuntu from other Linux and get everything the same as a fresh install booted from the ISO file.
It is easy to mount ubuntu-20.10-live-server-amd64.iso and then casper/filesystem....
0
votes
1
answer
199
views
How do you install TeamSpeak on Ubuntu that is on a Chromebook using a chroot?
I am on a Chromebook that I use a chroot for Ubuntu on it and I have been trying to install TeamSpeak 3 on it, but it won't let me install it. Please help me figure out how to install it.
I have tried ...
0
votes
0
answers
606
views
Ubuntu vsftpd hide other folder and disable possibility to browse them
I'm relatively new to Linux. I am creating an SFTP server using vsftpd on ubuntu 20. I'm authenticating users with Active directory.
The problem I have, is that even though the user land in their home ...
2
votes
2
answers
213
views
Is chroot the proper way to use packages from previous releases?
Suppose I want to use some GUI programs that were provided in an old release of Ubuntu. I am currently using a later version of Ubuntu that does not provide these GUI programs. Is there a reliable way ...
0
votes
1
answer
439
views
Restricting code-server to a specific directory?
Would be awesome to get a guide/doc on how to setup chroot for a user account and start code-server under that user.
so I'm wondering if there's any way to restrict code-server's access to a specific ...
3
votes
5
answers
22k
views
VirtualBox error: Kernel driver not installed (rc=-1908) (running ubuntu 20.04 on my chromebook)
When I try to start a virtual machine in VirtualBox, I get the error above. I tried what it asked me to do, but it didn't work. My kernel version is 4.4.232. Also, here is the error message:
The ...
0
votes
0
answers
15
views
Didn't type password into CLI with ChromeOS, now I can't do any commands in Ubuntu [duplicate]
I recently installed Ubuntu 16.04 with Chroot and CLI on ChromeOS. When I was prompted to answer a password, I hit Enter (without typing a password) and when I try to do commands it asks for a ...
0
votes
1
answer
965
views
Can't umount mnt/sys after mounting it with --bind for chroot
I'm working with an ext4 image file that boots into a VM. To set it up I do a chroot of it:
sudo mount <path>/image.ext4 mnt
sudo mount --bind /dev mnt/dev
sudo mount --bind /sys mnt/sys
sudo ...
0
votes
1
answer
3k
views
install grub on mounted filesystem
I have booted rescue linux (init ram fs), and mounted /dev/sda1 on /mnt/sda1
/dev/sda1 is a linux partition, but /dev/sda has no mbr.
How can I install grub on mounted filesystem /mnt/sda1 ?
I tried:
...
0
votes
0
answers
307
views
How set ChrootDirectory on ssh_config in Ubuntu 20.04
how can I set the chroot directory for a specific user in ssh_config?
I'm trying:
Match User zeus
ChrootDirectory /home/test
Forwardx11 no
But I get a syntax error for the "...
1
vote
1
answer
341
views
User creation with limited access
How to create a user with access to selected applications installed in the system and read/write permission to only one directory in the file system?
Say, for example, one wants to create a user dummy ...
0
votes
1
answer
1k
views
Build aarch64 NVIDIA Jetson Nano image in x64 docker container using GitLab runner
I am trying to build a custom NVIDIA Jetson Nano image (aarch64 architecture) inside a Docker container (running Ubuntu 20.04 x64). I skip the NVIDIA tools part because I am stuck on the first part ...
1
vote
1
answer
1k
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 ...
2
votes
0
answers
296
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 ...
0
votes
1
answer
64
views
rootstrap: command not found
I'm trying create a system-root to do some tests using jail and I'm trying install rootstrap whitout success.
$ rootstrap
rootstrap: command not found
When try install:
$ sudo apt-get install -y ...
0
votes
0
answers
147
views
Point an SFTP user to its working directory without listing other user's directory
I am working on configuring an SFTP server on Ubuntu Server 18.04. I want to create SFTP accounts that point directly to their working directories without listing others. For example if the real ...
2
votes
0
answers
350
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:
...
1
vote
0
answers
29
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 ...
0
votes
0
answers
29
views
Loading another Ubuntu within Ubuntu?
I have an Ubuntu OS on a separate HDD. Is it possible to load that Ubuntu system with full Desktop GUI within my current running Ubuntu machine?
I look for something like
chroot but full desktop ...
2
votes
1
answer
934
views
Syntax error near unexpected token `then'
When I try to update (source .bashrc) my .bashrc in the Ubuntu terminal for changes in aliases, I get the error
bash: ./.bashrc: line 34: syntax error near unexpected token `then'
bash: ./.bashrc: ...
1
vote
0
answers
577
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 ...
0
votes
1
answer
554
views
Change Xubuntu icon theme from Cubic chroot
I am using Cubic to customize Xubuntu 18.04. I want to change the icon theme to Paper. I have installed it, but cannot configure it. I have tried commands such as gsettings set org.gnome.desktop....
5
votes
0
answers
10k
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 ...