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
1 answer
114 views

Jailkit: does it work in 22.04?

I'm following these instructions for setting up sftp and scp (although I'd like to add rsync too) but when the jailed account logs in, it immediately disconnects without any errors I can see. The doc ...
TommyPeanuts's user avatar
  • 1,073
0 votes
0 answers
91 views

Tool for creating a minimal chroot environment

I want to run a program in a smallest possible chroot environment with just the binary and necessary shared libraries present. Is there a tool for creating such an environment? I tried debootstrap but ...
grep's user avatar
  • 117
0 votes
0 answers
140 views

Ubuntu 22.04 won't reboot

Upgraded Ubuntu 20.04 to 22.04 - everything worked fine. Then I tried activating unattended-upgrades and let it install a new kernel and reboot. Machine never recovered. Grub has the following kernels ...
azzid's user avatar
  • 856
0 votes
0 answers
135 views

coustomizin ubuntu 23.10

I am currently in the process of creating a custom Ubuntu 23.10 ISO with a specific aim to initiate a minimal desktop environment along with a designated startup application when booted from a USB ...
Umang Jais's user avatar
0 votes
0 answers
132 views

Not able to install and update ubuntu 22.04 drivers using bootable ubuntu 22.04

I was trying to install a software that was giving me some gpu errors so i decided to downgrade my nvidia driver from 535 to 525. While doing so I got error in additional drivers app in Ubuntu. So ...
ssrm7_bot's user avatar
1 vote
1 answer
922 views

I accidentally run command "chmod 555" on system directories [duplicate]

I accidently ran sudo chmod 555 / and now all users have lost access to the server Error: Last login: Thu Oct 18 16:50:55 2023 Could not chdir to home directory /home/User1: Permission denied /bin/...
hergo herna's user avatar
0 votes
0 answers
7k views

How to resolve grub-probe error: disk lvmid/xxx not found

I encounter an error stating "lvmid not found" when running the grub-probe command. # grub-probe --target=fs_uuid / grub-probe: error: disk `lvmid/R9xUrf-ONd8-wCXx-qfxt-m5Ox-JwKG-LrcAZI/...
teityura's user avatar
0 votes
0 answers
20 views

Upgrading an old dusty 20.04 installation on a new motherboard, ethernet not working

I have an old 20.04.1 Ubuntu installation that wasn't touched since 2020, that I need to boot on to revive an old development project that was let unfinished. The motherboard & CPU changed and are ...
galinette's user avatar
  • 173
0 votes
0 answers
147 views

Recover brocken libs with live USB and chroot

I have the following problem: I had to mingle with some libs to build a project successfully. After I rebuild one of those libs (libtirpc) something broke and I was not able to either sudo nor use apt ...
Strohhut's user avatar
  • 101
0 votes
0 answers
105 views

Ubuntu ISO with Autoinstall over chroot

I'm tasked with migrating 200 physical CentOS 7 servers to a custom Ubuntu 22.04 ISO. This custom ISO comes pre-configured with Autoinstall and seamlessly installs on any server or VM. However, I'm ...
Utz's user avatar
  • 79
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 ...
rdelangh's user avatar
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 ...
Ryan Fitzgerald's user avatar
0 votes
1 answer
65 views

How to use gnome keyring under my chroot?

I have a debian bullseye chroot in which I use svn. I want to save my password somewhere. One of the means to do so is to use gnome-keyring password store. What should I configure in order to allow ...
SR_'s user avatar
  • 103
-3 votes
1 answer
143 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
  • 101
1 vote
1 answer
2k 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,270
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 ...
Dakkaron's user avatar
  • 274
3 votes
3 answers
10k 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
477 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
193 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
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. ...
Dushyanth's user avatar
1 vote
2 answers
240 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
50 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
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 ...
Bram's user avatar
  • 2,449
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 ...
Aditya Raj Bhatt's user avatar
0 votes
0 answers
49 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
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 ...
user513667's user avatar
0 votes
0 answers
137 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
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 ...
stanley's user avatar
  • 231
0 votes
0 answers
310 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
  • 546
1 vote
0 answers
155 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
279 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
67 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
  • 575
0 votes
0 answers
346 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
54 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
370 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
  • 115
0 votes
0 answers
4k 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
326 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
2k 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,959
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,959
1 vote
1 answer
4k 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
  • 865
-1 votes
1 answer
859 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
  • 865
0 votes
2 answers
6k 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
207 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
  • 1,032
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
  • 575
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....
Marietto's user avatar
  • 575
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 ...
Zorinik's user avatar
  • 11
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 ...
CattoByte's user avatar
0 votes
2 answers
5k 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
261 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

1
2 3 4 5
7