Questions tagged [chroot]

a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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
1answer
31 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
0answers
25 views

Create users with limited SSH permissions and lock them to their own SFTP folder

Hello to whoever is reading, I'm starting a small hosting "company" and I want my users to have their own SSH/SFTP connection and folders without being able to access other users folders. I ...
0
votes
0answers
26 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
0answers
39 views

can't chroot apt-get update

Sorry for my bad english. When I write sudo apt-get update, I get: Hit:1 http://us.archive.ubuntu.com/ubuntu groovy InRelease 0% [Waiting for headers] [Waiting for headers] [...
0
votes
2answers
60 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
2answers
49 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
0answers
39 views

How to set up apparmor for Bind DNS?

I have figured that on my server apparmor was preventing me from running Bind in chrooted environment. I have created folder /chroot/named with all of the directories and files that Bind requires in ...
0
votes
0answers
95 views

debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: No locks available

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
0answers
34 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
1answer
63 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 ...
0
votes
0answers
59 views

chroot debootstrap problem : no such file or directory

I would like to run X86 applications on my Jetson Nano using qemu and debootstrap on ubuntu 18.04. Actually I'm following this tutorial : https://www.youtube.com/watch?v=dzAoaFOJy7U&t=338s&...
1
vote
1answer
189 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
0answers
75 views

How to setup vsftpd on an ubuntu image as non root?

I am trying to rebuild bogem/ftp to make the container run as non root. I created my own repo where you can find all the files. I build it locally: docker build -t bram_ftp:v0.4 . Sending build ...
0
votes
1answer
415 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
1answer
105 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
0answers
41 views

How to specify a chroot jail for anonymous users

I have setup a jail in /home/ftpjail and I want all anonymous ftp users to be in it. I've seen guides on how to place specific users on their own jails, but how do I specify a jail in vsftpd.conf to ...
0
votes
0answers
51 views

Ubuntu 18.04 users won't chroot to their local home directory even though vsftpd.conf is good

I have several servers on Ubuntu 18.04 and I've already chrooted users to their home directory on 2 servers and it worked. I opened a third server and configured it the same but on this one the ...
0
votes
0answers
91 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
2answers
139 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
1answer
104 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 ...
1
vote
3answers
6k 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
0answers
95 views

Chroot into arm based structure and run apt on x86

I would like to preinstall some packages including their dependencies on an ubuntu-arm64 based image. I thought about two different ways: Virtualize the complete arm-based board, in this case an RPi ...
0
votes
0answers
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
1answer
399 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
1answer
989 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
0answers
165 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
1answer
123 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
1answer
915 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 ...
0
votes
0answers
311 views

How do I find the name of my chroot(s)?

I'm trying to follow this short tutorial to fix videos not playing on Chromium: https://github.com/dnschneid/crouton/wiki/Common-issues-and-reporting I'm having trouble with this step: Figure out the ...
1
vote
1answer
416 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
0answers
114 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
0answers
46 views

script to build arm64 ubuntu 20.04 LTS for RaspberryPi 3/4

can I find somewhere the bash script to build from scratch an ubuntu 20.04 LTS image http://www.finnie.org/software/raspberrypi/rpi2-build-image.sh I think it should be something similar to the the ...
0
votes
1answer
56 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
0answers
44 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
0answers
205 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: ...
0
votes
0answers
134 views

Unity Ubuntu Missing Launcher, Many permission issues, and Unmounting issues

When I open Unity desktop on my Chromebook, the only thing I see is my desktop folders, no launcher or anything. This issue was described in another post (Unity doesn't load, no Launcher, no Dash ...
1
vote
0answers
23 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
0answers
28 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 ...
1
vote
1answer
564 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
0answers
340 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 trying to boot from USB but it just beeps when I ...
0
votes
1answer
225 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....
4
votes
0answers
7k 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 ...
0
votes
1answer
292 views

Multiple users access to the same vsftpd chroot environment in server 18.04

I have three different users in a Ubuntu Server 18.04.4: ls -la /home total 28 drwxr-xr-x 7 root root 4096 Mar 6 17:17 . drwxr-xr-x 25 root root 4096 Mar 4 15:...
1
vote
0answers
924 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
1answer
917 views

Why can't Ubuntu 18.04 chroot into a qemu environment?

I'm really struggling to understand what's to blame with chroot / qemu not work on Ubuntu 18.04. Later editions work (definitely by 19.10) but under 18.04 I get: cannot run command '/bin/sh' No such ...
3
votes
2answers
807 views

Snap Package installation in Chroot environment

I have a Chroot ubuntu environment installed in my Ubuntu 18.04 host computer. When I try to install a snap package in the chroot environment, the package gets installed in my host computer and not ...
1
vote
0answers
942 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 ...
2
votes
0answers
82 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 ...
0
votes
0answers
97 views

My Ubuntu 18.04 chroot doesn't link /bin to /usr/bin

So my Ubuntu 18.04 chroot was not linking /bin to /usr/bin. But my Ubuntu 19.04 chroot was linking /bin to /usr/bin. root@localhost:/# ls bin data etc lib mnt proc run sdcard sys usr ...

1
2 3 4 5
7