Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chroot]

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

0
votes
0answers
13 views

Can using chroot affect the host system and does the 'wellness' of the host system matter?

Regarding Kubuntu 18.10, kernel 4.15* and 4.18*. I was using cubic to slim down an ISO while installing a live USB from the same ISO source, checksum verified. The only reason I'm using cubic in the ...
0
votes
0answers
18 views

Why chroot PATH value is not as expected?

I have a Ubuntu 18.04. The PATH value in my system is as follows: /home/myname/bin:/home/myname/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/...
0
votes
0answers
23 views

How to change folder permission with chroot

So I played around some with display managers, and when I switched to LightDm it said in terminal to change file permission to root for /home/user/.config being tired I didn't really think about what ...
1
vote
0answers
23 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
votes
1answer
24 views

How can I have all packages come with Ubuntu on a chroot?

Unfortunately, when I use debootstrap to install a chrooted ubuntu only a set of minimal packages gets installed. What should I do if I want to install all packages that come with Ubuntu? The reason ...
0
votes
2answers
89 views

/dev/null permission denied in chroot environment

I have Xubuntu 18.04 in a chroot environment. I just dropped it in there from a VM I had of it. Going into the chroot environment, if I try to run apt update I get this error: /usr/bin/apt-key: 624:...
0
votes
0answers
17 views

Can apt upgrade in a chroot overwrite the 'host' kernel?

I'm using a chroot to effectively containerise my development environment. Before switching to the chroot I'm mounting /sys, /dev and /proc. I'm concerned that if I perform a apt-get update then I ...
0
votes
1answer
146 views

Can't launch Qt Creator in Ubuntu 18.04

My environment initially had qt4 and Qt Creator seemed to work fine back then. I installed qt5 and after that Qt Creator does not launch anymore. Qt Creator works fine in my virtual machine however. ...
1
vote
0answers
47 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 ...
0
votes
0answers
48 views

Rebooted system during fsck command: How to recover?

Being a new linux user, I mistakenly thought the system had hung when running fsck on my root partition and proceeded to reboot. After that all my system directories went into lost+found and the ...
1
vote
0answers
91 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 ...
0
votes
0answers
32 views

Remastering an Ubuntu Image with custom software

I want to customize a Ubuntu Desktop Iso and I have come that far, that I am in the chroot enviorement. The problem is that I do not have Internet access in there to install anything. I just can ...
0
votes
2answers
49 views

“No journal files were found” on chrooted rescue system

I have a remote Ubuntu 16.04 server that I can't reach via ssh after I shut it down and booted it again. I had OpenSSH Server installed during system installation and I never disabled it (e.g. ...
0
votes
3answers
137 views

Can't connect to internet in chroot

I can't connect to the internet in chroot. For example, when I run apt update, I get a "temporary failure resolving". I tried copying resolv.conf over but still same error.
0
votes
0answers
196 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 ...
0
votes
0answers
221 views

Kernel panic at boot and many programs segfault / core dump

Today I booted up an Ubuntu computer I last used when it was working fine 2 weeks ago, and now every kernel I have (4.15.x and 4.13.x) panics at the beginning of boot, including in recovery mode. I ...
0
votes
0answers
58 views

VMware Horizon Client will not launch on 16.04 Chroot

I'm running Ubuntu on my Samsung Chromebook Plus in a chroot. Ive installed VMware-Horizon-Client-4.7.0-7395152.x64.bundle using the code sudo sh ~/Desktop/VMware/VMware-Horizon-Client-4.7.0-...
0
votes
1answer
52 views

Ubuntu won't boot after a power-cut during upgrade

I started an upgrade to (I believe) 18.04 and it got interrupted by a power-cut. I tried the solutions mentioned here --> Lost power during upgrade, how do I recover? I have booted on ubuntu 16.04 ...
1
vote
0answers
217 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
0answers
45 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 ...
0
votes
1answer
75 views

How to install packages within pbuilder/cowbuilder chroot environment?

I want to do some automation of building/installing packages. I know cowbuilder allows you to build a package in a clean chroot environment. Is there a way to install built packages to make sure ...
0
votes
0answers
107 views

Having problems with repairing GRUB. chroot. Bus Error.

I've trying to clean install and trying to dual boot. Windows 10 and Ubuntu 18.04. I have the Ubuntu installed and Windows 10 and now trying to fix the grub. I can boot up Wins no problem. However ...
0
votes
1answer
61 views

Determine if a shell script is running on a LiveOS/chroot/installed system?

How can I determine within a shell script if the script is running: On a Ubuntu LiveOS (not necessarily version dependant) -- (already answered here) Within a chroot on an Ubuntu LiveOS (already ...
0
votes
0answers
61 views

Ubunu: restrict user only in a single directory without permissions to view anothers with SSH Key auth

Hi All! I have an issue and didnt find the solution/guide yet for 100% sure Ubuntu 14.04+: I want to add a user with his own home (base) directory to allow access to him ONLY inside this directory ...
0
votes
0answers
53 views

Can't autologin on my remaster linux

I want remastering my own linux through uck chroot. In chroot mode, i want install xampp and succesfully installed it. But after repacking into iso and boot the iso, then pressing try ubuntu, the ...
1
vote
0answers
64 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'...
2
votes
2answers
123 views

How to shutdown Ubuntu from chroot?

I installed an infrared receiver sensor and I plan to shutdown my Raspberry running Ubuntu Core using a remote control. The point is: Python and libraries like Rpi.GPIO are installed in an environment ...
0
votes
0answers
39 views

How does one set up SSH on an Ubuntu Server to be used as an internet gateway?

Looking for an example of commands so that I not only know how, but also understand how its done - For educations sake. But in the short term I just need it to work. The server is an Ubuntu chroot ...
0
votes
0answers
74 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 ...
0
votes
0answers
63 views

How to fix non-default gnome-terminal opening failure?

I've recently updated one of my ubuntu(gnome) chroots to 18.04 from 16.04 LTS (before official release to 16.04 LTS). The chroot has the gnome target not gnome-desktop and has come with xterm (instead ...
0
votes
1answer
183 views

How to copy root file system in Ubuntu

I want to copy my Ubuntu's root file system into another folder (perhaps /home/rootfs). I am not trying to copy /, which is the root file directory, but am trying to copy the root file system. Does ...
0
votes
0answers
43 views

Problems Modifying Lubuntu .iso

I'm trying to add a few programs to a Lubuntu 18.04 64-bit iso following the instructions in this guide. At the step where it directs me to run apt-get update, I get several errors related to "invalid ...
0
votes
0answers
66 views

Allow two chrooted users access to a common directory

I've got two users who both need to have very limited access to the filesystem and both are set up to be chrooted / sftp only. User A has created a directory they need to share with User B in order ...
0
votes
1answer
498 views

Can't connect to internet in chroot using Cubic

Currently trying to modify a custom ISO image using Cubic. As per this, I am supposed to enter ln -sr /run/systemd/resolve/resolve.conf /run/systemd/resolve/stub-resolve.conf But what is returned ...
1
vote
0answers
54 views

How to jail users under Ubuntu 17.10

Following link gives a solution about Simple & easy way to jail users. Multiple comments mention that it does not work on Ubuntu 13.10, but there is no verification about that. I have tried that ...
0
votes
0answers
24 views

budgie profile loading fails at boot after remastering:

last week I've remastered Bionic customizing it (it's something I'm doing since 10.04 for distributing it to our students). Remastering process is totally "hand made", I mean using only terminal, ...
0
votes
0answers
24 views

Is It Possible To Have A schroot Config In My Project Directory?

I am writing a script that creates a chroot with schroot. However, to avoid mounting the home dir I have to modify some files in /etc. This means that if I run the script on someone else's PC it is ...
0
votes
0answers
17 views

How to save apps from non-booting ubuntu?

The story is: I had a dual-booting OS (Ubuntu 16.04 and Windows 10) I placed an M2 SSD and since then Windows instantly dropped blut-death i couldn't fix it (tried many things). Finally I deleted its ...
2
votes
0answers
2k 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/...
0
votes
1answer
104 views

Are there commands to install Ubuntu from USB? [closed]

I currently have Q4os installed. What command can I use to install Lubuntu from files on USB? I can't boot install from USB and mini install doesn't have wireless internet installed.
0
votes
1answer
155 views

Issues installing Custom Ubuntu after apt updates

I have been attempting to build a standard environment which uses Ubuntu 14.04 along with some additional packages and have made up a quick script to update apt and install the packages I require. ...
0
votes
0answers
30 views

chrooted vs non-chrooted postfix: what are realistic security risks?

By default, Ubuntu 16 runs postfix chrooted. I know that it is "for security". However, I can not find any documentation for 2 logical questions: If we change default saslauthd file location, what (...
0
votes
1answer
211 views

Use older version of GCC for application that requires it

The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI). According to their forum ...
0
votes
0answers
26 views

How can I use a menu based installation (e.g. debian-installer) to configure a chroot environment

I'm trying to install an Ubuntu system on a server currently running Debian. I have used debootstrap to create a base system of Ubuntu Xenial on a new partition, and I can get access to it using ...
0
votes
1answer
33 views

Registration of chrooted environment on Landscape not working with Virtual license

Despite having several remaining registrations on Landscape, it doesn't let me register chrooted environments: 'There are no licenses available for $accountname. $hostname was not accepted.' License ...
0
votes
1answer
249 views

Magento2 commands not running in chroot environment

I successfully set a chroot on my server. I want to place magento projects on chroot so that a user can execute all sorts of magento2 commands if needed. I mounted magento projects to chroot directory....
1
vote
1answer
590 views

Chroot onto ARM based image

I'm trying to do some work on an image for a raspberry pi, but I don't have access to the pi itself, just the SD card that runs the OS. I'd like to chroot onto the pi's SD card (mainly to run some ...
0
votes
2answers
489 views

Allow a user to change his password on a chrooted environment

I'm trying to setup a chrooted ssh and sftp server under Ubuntu server 16.04.3 LTS. I followed this tutorial: https://rp29blog.wordpress.com/2016/06/26/setting-up-chroot-sftp-and-ssh I got it working....
1
vote
0answers
26 views

Overcoming the openssh / sftp jailroot unwritable

we have set up openssh / sftp with a jailroot via chroot; it's well established that a client can't write (upload files to) this root; you need to set up a writable subfolder. However, we have ...
2
votes
1answer
63 views

Steam LAN “In-home steaming” not working on Chrome OS (via crouton)

I installed Ubuntu xenial on my Chromebook via crouton, and after navigating through "locales" problems not being able to run gnome-terminal, mounting problems on my sdcard, and video API problems, I ...