Questions tagged [chroot]
a linux command to change the filesystem root a process can see, limiting it's access to the real filesystem root
348
questions
0
votes
1
answer
268
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 ...
1
vote
0
answers
539
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
2
answers
2k
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 ...
1
vote
0
answers
586
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 ...
1
vote
0
answers
193
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
2
answers
3k
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 ...
1
vote
1
answer
2k
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
0
answers
243
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 ...
3
votes
0
answers
11k
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
1
answer
174
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
1
answer
442
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
1
answer
900
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
1
answer
73
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
2
answers
579
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....
2
votes
1
answer
6k
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
2
answers
2k
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
0
answers
84
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
1
answer
187
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 ...
0
votes
2
answers
2k
views
Custom Ubuntu ISO Creator: "Warning! You are not in the chroot environment. Exiting."
I'm using CUBIC to create a custom Ubuntu ISO. I have downloaded ubuntu-16.04.3-server-amd64.iso as a base image, and specified ~/cubicworkspace as my working folder. But when I click "Next" and it is ...
0
votes
1
answer
5k
views
Chroot is not working properly. I'm using vsftpd [duplicate]
I'm using VSFTPD in Ubuntu 14.04 and I'm using Filezilla to connect to the FTP server. When I connect using port 21 everything work as planned "users are chroot to their home directory".But when I ...
4
votes
1
answer
7k
views
How to update and add new packages in chroot?
I have a Disk Image but this Disk Image has not some packages like libjpeg. First of all I mount the Disk Image to directory and then I change root to this directory. Unfortunately apt-get update and ...
1
vote
2
answers
4k
views
allow git acess under chroot
The server has set up chroot environment.Users can access the server by sftp.
More than that,they need to use git aslo.I was following this link creating-chroot-jail-ssh-access,copied /bin/bash /usr/...
0
votes
1
answer
2k
views
internal-sftp log for chrooted group
My /etc/ssh/ssh_config file have follow config
Subsystem sftp internal-sftp -f AUTH -l INFO
Match group tmrhackers
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
and the sftp ...
0
votes
1
answer
52
views
I messed up and removed important packages, is there a way to restore all packages that would come with the live distro ?
Im on Ubuntu server 16.04 and I tried to solve some issues by uninstalling and reinstalling. Then i see apt telling me lot of packages are not required and can be autocleaned. I tried to install them ...
0
votes
0
answers
535
views
reinstall ubuntu-desktop after accidently removed ibus [duplicate]
I accidentally removed ibus on my ubuntu 16 which is upgraded from 14.04 and suddenly I have unmet dependencies, broken packages, etc. I managed to chroot into the system using a live-cd-usb and ...
0
votes
2
answers
16k
views
edit resolv.conf
I can't edit /etc/resolv.conf, error: permission denied
I upgraded from 16.04 to 16.10 and keyboard & mouse stopped working, following ubuntu KB asks to mount chroot, chroot mounted but dns not ...
1
vote
1
answer
351
views
How do I force Spotify's cache into RAM?
Spotify is writing enormous amounts of data onto my hard drive. As is expected from an app that downloads every song it plays and then deletes it after you close the app. All that reading and writing ...
0
votes
1
answer
189
views
Error reinstalling a chroot? [duplicate]
I've been running Ubuntu (Unity) on a chromebook for a couple of years. I had to reformat the device and now I'm trying to reinstall from a backup. I've downloaded crouton and copied my backup called ...
2
votes
1
answer
8k
views
Update grub in a chroot environment with root on a luks encrypted volume
I want to move a system (all systems I am using are Ubuntu 16.04 based) from an unencrypted partition to a luks encrypted one (on the same disk).
To this end, I created a LUKS encrypted logical ...
1
vote
1
answer
388
views
Returning to a chroot environment
When I chroot while logged in using a ssh session. How do I get back to the chroot environment when the ssh terminal session ends. When I ssh back in I'm back on the non chroot environment. While I'...
2
votes
1
answer
319
views
Question about chroot
Scenario
I have 2 working Ubuntu partitions on my hard drive, let's call them A and B. They use a single swap partition.
I have booted into A and logged into the desktop. Now I want to make partition ...
1
vote
0
answers
1k
views
Armhf chroot on arm64
First off should I not be able to run armhf on an arm64 server without needing qemu? or am I wrong there? If i run a armhf app I get this: Exec format error
I have been trying to setup and armhf ...
0
votes
0
answers
826
views
Cannot execute binary file: Exec format error when executing "sudo chroot /mnt"
After screwing it up a little resizing Ubuntu's partition on my pc (the process stopped suddenly and I had to recover boot from initramfs) I am trying to repair grub since now it is installed empty (...
0
votes
1
answer
405
views
Accessing zfs pool with chroot sftp - User can view files/folders but cannot create [closed]
Here's what I've been trying to do:
Create a zfs pool that can be accessed through sftp
Be able to read and write files in the zfs pool through sftp (remotely)
Create a user who can read/write files ...
0
votes
1
answer
417
views
How to Run Windows 07 in Ubuntu using chroot?
Is there any way to make any Windows-OS run in Ubuntu using the chroot-jail or chroot ?
Edit the question as you feel is necessary, typed Windows 07 there as an example and as its a truly good OS.
1
vote
0
answers
160
views
Connecting Ros on a chroot with AMD ATI display
So, I have ROS Indigo on a chroot on my Ubuntu 15.10.
I installed the nao-gazebo package to simulate a Nao robot using Gazebo. It was working fine. I used the command xhost +local: on the host and in ...
5
votes
1
answer
16k
views
Removing a chroot environment
I was following these steps to install ros indigo on a chroot environment on my Ubuntu 15.10
http://wiki.ros.org/ROS/Tutorials/InstallingIndigoInChroot
But I screwed some things up and I want to ...
0
votes
0
answers
507
views
chroot into 32bit system from 64bit machine
when I try to chroot into my 32bit system from a 64bit machine, it is responding with /bin/bash is not found despite the fact that the file existed in the specified directory. is there any way to get ...
0
votes
0
answers
302
views
How to set up an SFTP user with no ability to traverse the directory tree
I am using Ubuntu 14.04.1 LTS. My goal is to have an SFTP user(s) log into the sever remotely with permission to upload or download anything from the directory they land in, but NOT be able to ...
1
vote
1
answer
4k
views
Cannot reinstall kernel from chroot
I accidentally deleted the contents of /boot .
I tried
apt-get purge linux-generic linux-image-generic
apt-get install linux-generic linux-image-generic
Building dependency tree
Reading ...
53
votes
5
answers
37k
views
How to automate setting up of "keyboard-configuration" package?
I'm writing a script to install Ubuntu 16.04 server into a chroot jail, using debootstrap (on an Ubuntu 16.04 server machine).
During the setting up of the keyboard-configuration package it asks for ...
1
vote
0
answers
664
views
custom ubuntu live CD: NetworkManager not working
I'm trying to build up an ubuntu live cd from scratch but I'm failing with the automatic configuration for the network interface card.
The live cd is booting into desktop but NetworkManager is stuck ...
0
votes
1
answer
2k
views
How to resolve the 'cannot get security labeling handle: No such file or directory' error?
For a reason that completely escapes me, recently whenever I try to install a package or upgrade a package with APT or dpkg I get the error:
dpkg: error processing archive ... (--install):
cannot ...
0
votes
1
answer
84
views
Tarballing system nodes
Say I'm tarballing a chroot. Would it be reasonable if it tried to tarball a system node, say, /dev/zero?
Or would this just be as stupid as it sounds, resulting in tar infinitely trying to find the ...
-1
votes
1
answer
95
views
Chroot Ubuntu Upgrade 14.04 Invalid? [duplicate]
I got the Ubuntu Unity desktop on my Chromebook through Chroot. I realized there was a update ready, 14.04 Trusty Tahr. I start the process, and it gets to where the computer restarts. When I boot the ...
1
vote
1
answer
2k
views
SFTP with multiple users
I want to limit the users to their file. I added the following lines to the sshd configuration file.
Match user user1 user2 user3
ChrootDirectory /home/%u/
ForceCommand ...
0
votes
0
answers
157
views
chroot can't execute /etc/apparmor/inittramfs
We've old Ubuntu on our server, which is used for SVN commits. It is our SVN server. We don't want to lose the data which is for last 10 years committed there. We don't want to lose the svn commit ...
0
votes
1
answer
18k
views
mount point does not exist
In order to change forgotten root password, I performed these steps:
Boot from LiveUSB & run these commands:
sudo mount /dev/sda1 /mnt
for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d;...
4
votes
1
answer
1k
views
Allow user in a chrooted shell to use a sudo command
I have a user chrooted to a directory, and everything is working smoothly. I want a group this user is in to be able to restart a single process that's being managed by supervisor, however, and I can'...
1
vote
0
answers
2k
views
Safe way to remove a Chroot environment
I created a chroot environment to test an old release without reinstalling the operating system. Now I am done with it. I would like to remove it since it has a very large footprint.
I am tempted to ...