As of May 31, 2023, we have updated our Code of Conduct.

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
-3 votes
1 answer
38 views

Configure postgresql from CUBIC chroot

I'm customizing a Lubuntu 22.04 image to have a ready-to-use environment after installation. One of the points - I need to have postgresql installed and configured, means that a database is created ...
meridbt's user avatar
0 votes
1 answer
236 views

Download Ubuntu rootfs

Similar to what is possible with Alpine Linux is there a place where I can download some kind of official "core" rootfs of Ubuntu, mainly for chroot purposes?
s.k's user avatar
  • 1,138
0 votes
0 answers
103 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 ...
Dakkaron's user avatar
  • 265
2 votes
2 answers
2k views

sudo: unable to allocate pty: No such device

Ubuntu 22.04.01 LTS Gnome Changed python version which resulted in inability to access Terminal and a few other things. Used a liveUSB and then selected to try ubuntu. In that terminal entered: sudo ...
Exquisite Mong's user avatar
2 votes
1 answer
222 views

How to allow SSH chroot user to restart apache on host?

My first post here on Ask Ubuntu. I have an LAMP Ubuntu server which has two vhosts defined in /etc/apache2/sites-enabled. One of these sites (an external mirror site) must be maintained by an ...
Andy Woolford's user avatar
0 votes
0 answers
106 views

ChromeOS crouton Ubuntu Unity return with noexec error on 128GB SD card

I just installed Ubuntu Unity chroot on my HP 19"5' chromebook in dev mode and everything went fine until I tried to run it. The SD is formatted to ext4 and already has Linux installed, but when ...
FNaF_Master109's user avatar
0 votes
0 answers
205 views

Need to install ubuntu 22.04 live server with specific kernel verison 5.15.0-25

We are developing our solution in ubuntu 22.04 live server with 5.15.0-25 kernel. We use chroot environment to create custom ISO. During install, entered to shell and verified the current kernel ...
seeni sekar's user avatar
0 votes
0 answers
109 views

is possibile to chroot jain in SFTP users' home with multiple hdd mounted (multiple time)?

Good day, Recenlty the number of users that use my media server (Plex) incresed so I've decided to take a new machine and "clean" my setup (as for now I've a windows laptop with Plex and an ...
Pinnaker's user avatar
0 votes
0 answers
134 views

How Restrict User in his home directory while using npm, pm2 and forever commands

I want to restrict users within their home directories from the terminal and FileZilla as well. The user can run npm, pm2, and forever commands to deploy their projects. I have tried chroot jail but ...
Ali saad's user avatar
0 votes
0 answers
38 views

Enabling a chroot jail

I wand to set up a chroot jail at /mnt, using chroot /mnt, with the principal supporting directories linked (not copied) from outside the jail. I saw a post suggesting the use of bind -o, but it ...
Paul A.'s user avatar
  • 2,073
0 votes
0 answers
255 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. ...
Dushyanth's user avatar
1 vote
2 answers
125 views

Run GUI apps inside fakechroot debootstrap

I'm following the tutorial on https://github.com/dex4er/fakechroot. I'm trying to install and run some apps keeping them isolated on an unprivileged user, without root. They are proprietary software ...
Hikari's user avatar
  • 203
0 votes
0 answers
37 views

unable to install java inside chroot

Unable to install java inside chroot, while installing java asking to mount /proc mount point but unable to mount the /proc mount point as well. getting below error. root@gtr14:/# ps -ef Error, do ...
Dushyanth's user avatar
0 votes
0 answers
45 views

patch file creation var/lib/dpkg/status is failing in chroot environment in ubuntu

I am creating customized iso using chroot and fakeroot utility in ubuntu 22.04. In the end, while creating diff in chroot env using the patch -p1 command (mentioned full command below) getting an ...
Dushyanth's user avatar
1 vote
0 answers
84 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 ...
Bram's user avatar
  • 2,029
0 votes
0 answers
79 views

Does the chroot user log have to be "$AddUnixListenSocket /user1HomeDir/dev/log"? Can /dev be modified

Logging sFTP activity for chrooted users,There are no other directories under the sftp users home directory. Can you change /dev to another directory name? Why must it be /dev, what directory is it, ...
cruise's user avatar
  • 1
0 votes
0 answers
288 views

boot fail run-init can't execute /sbin/init ubuntu

I have an Ubuntu 20.04 LTS server on a Raspberry Pi 4 4GB. I have working on something minor task via SSH. The system is froze. After I pluged out and in the PSU, the system doesn't boot. Here is the ...
Thomas's user avatar
  • 19
1 vote
0 answers
726 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 ...
Aditya Raj Bhatt's user avatar
0 votes
0 answers
42 views

Cannot show ubuntu login screen after edit some keyboard layout config files

I wanted to install the mtgap keyboard layout, so I go to the its github page https://github.com/kenranunderscore/mtgap-layout and do the following: sudo cp xkb/mtgap_30 /usr/share/X11/xkb/symbols/ ...
WestMountain's user avatar
1 vote
0 answers
357 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 ...
user513667's user avatar
0 votes
0 answers
77 views

Troubleshooting a bash script using chroot. Are there differences between 20.04 and 22.04?

I am using a bash script that does things under a chroot. It was working well a long time ago like this : copy stuff here and there then sudo chroot . su - root -c "\ set -o xtrace ; \ cd /tmp/...
mkl's user avatar
  • 1
1 vote
0 answers
170 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 ...
stanley's user avatar
  • 183
0 votes
0 answers
226 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 ...
Owl's user avatar
  • 496
1 vote
0 answers
95 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?
Racer's user avatar
  • 11
0 votes
0 answers
182 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 ...
Ihor Drachuk's user avatar
0 votes
0 answers
50 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 ...
Marietto's user avatar
  • 453
0 votes
0 answers
231 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....
obachtos's user avatar
  • 101
1 vote
0 answers
25 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 ...
danben's user avatar
  • 121
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 ...
Damn devil's user avatar
0 votes
1 answer
279 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 ...
MDoe's user avatar
  • 65
0 votes
0 answers
2k 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: ...
Brad Thompson's user avatar
0 votes
0 answers
205 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 ...
Tqq's user avatar
  • 1
0 votes
2 answers
1k 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 ...
Chan Kim's user avatar
  • 1,663
3 votes
1 answer
2k 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 ...
Chan Kim's user avatar
  • 1,663
1 vote
1 answer
2k 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 ...
FalcoGer's user avatar
  • 817
0 votes
1 answer
563 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....
FalcoGer's user avatar
  • 817
0 votes
2 answers
4k 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 /...
Fazou's user avatar
  • 3
0 votes
2 answers
147 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 ...
adazem009's user avatar
  • 922
0 votes
0 answers
591 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 ...
Marietto's user avatar
  • 453
1 vote
0 answers
279 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....
Marietto's user avatar
  • 453
1 vote
1 answer
246 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 ...
Zorinik's user avatar
  • 11
1 vote
1 answer
492 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 ...
CattoByte's user avatar
0 votes
2 answers
3k 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....
Galaxy's user avatar
  • 101
0 votes
1 answer
237 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 ...
Lightningscales's user avatar
0 votes
0 answers
1k 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 ...
random-xyz's user avatar
2 votes
2 answers
402 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 ...
Flux's user avatar
  • 475
0 votes
1 answer
704 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 ...
Benson K B's user avatar
4 votes
10 answers
35k views

VirtualBox error: Kernel driver not installed (rc=-1908) (running ubuntu 20.04 on a chromebook through crouton)

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 ...
Jacob McKenna's user avatar
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 ...
sidney suffridge's user avatar
0 votes
1 answer
2k 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 ...
hfingler's user avatar
  • 101

1
2 3 4 5
7