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

learn more… | top users | synonyms

40
votes
2answers
81k views

How can I chroot sftp-only SSH users into their homes?

I want to give a client access to my server, but I want to limit those users to their home directories. I will bind-mount in any files I want them to be able to see. I've created a user called bob ...
0
votes
0answers
17 views

Cannot access portable disk from (s)chroot jail

I want to access the files in my portable hard disk, so I bind-mount the /media directory to the schroot jail by adding a line /media /media none rw,bind 0 0 to ...
1
vote
1answer
3k views

Network Manager missing after update: no connectivity

After an update and restart, I found that the network icon on the top is missing and so, I cannot connect to LAN, wifi, USB modem, nothing. Now, I am booting from a Live USB, then chrooted to my ...
0
votes
0answers
11 views

How to set up apt-get ssh transport with chroot

I want to set up a private APT repository that is only accessible by a shared public key, via the ssh transport. The only problem is, this also gives ssh access to the machine. I would therefore like ...
0
votes
0answers
23 views

How do I know if I'm in a jail, container, snapshot, etc. environment?

I received a machine (Ubuntu 12.04 server) from a coworker when he left the company. I created my own user as sudo/admin and used the machine for months. After rebooting for the first time since I was ...
1
vote
3answers
151 views

How do I create a local repository accessible from a local chroot environment for O/S building?

I am interested in building my own custom Ubuntu remix, and have been doing so with the Ubuntu Mini Remix ISO. To do this, I mount the disk image and chroot into it, in a manner similar to this ...
2
votes
1answer
253 views

ssh-agent not accessible within a schroot

I'm using an schroot to do some builds of deployment packages, and there's a lot of to and fro between the host and the schroot environments. Within the schroot the ssh-agent doesn't seem to be ...
15
votes
4answers
4k views

How do I stop all processes in a chroot?

I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
0
votes
4answers
63 views

scripting chroot, how to?

So I'm looking at: https://help.ubuntu.com/community/LiveCDCustomizationFromScratch and trying the following within a bash script: sudo chroot chroot mount none -t proc /proc mount none -t sysfs ...
12
votes
4answers
48k views

During a chroot attempt, I got this error: “chroot: failed to run command '/bin/bash': Exec format error”

I was following the instructions of this tutorial HOWTO: Purge and Reinstall Grub 2 from the Live CD, when I encountered an error at step 1, as I launched the command sudo chroot /mnt/temp The ...
0
votes
0answers
7 views

Jailing particular users on login

This whole deal with jails and chroot is a bit confusing to me. They are used to run possibly risky programs securely, but this has to be initiated by the user. I'm looking for how to jail users like ...
0
votes
0answers
86 views

Change chrooted sftp user default directory

I am using Ubuntu Server 14.04.1 LTS running openssh. I have set up sftp chroot for several users by editing sshd_config like below: add: Subsystem sftp internal-sftp Match Group sftp_users ...
0
votes
0answers
90 views

Strange boot problem in Server 14.10

This is on Ubuntu Server 14.10. I am setting up a user that is chrooted to its own home directory through SFTP, but I need the user to be able to access/edit a subdomain of my website at ...
0
votes
0answers
40 views

How to SFTP Jail (chroot) with Active Directory authentication

I am try to set up SFTP with Ubuntu 14.04 using chroot with AD authentication restricting by Group as well as having a public area for users. I already have samba, winbind and kerberos setup as a ...
0
votes
0answers
101 views

Ubuntu iso build debootstrap error chroot/test-dev-null: Permission denied

I am trying to build an ubuntu trusty tahr iso image from the sources. But a get all the time this error message and I don't now how I can solve it. I execute the build script as root. I: Validating ...
22
votes
4answers
29k views

Simple & easy way to jail users

I need a simple and easy way to jail users in their home directories in Oneiric. Do you have a simple configuration for jailing users, with full help, or some good web links? I would be offering an ...
0
votes
0answers
14 views

How do I Resolve a dependency issue with Ubuntu SDK, chroot, CMakelists, and the Emulator?

I am trying to build lp:ubuntu-filemanager-app on the ubuntu sdk for running on the emulator. The libraries I need are installed on my system, and in the phablet-shell. I can run the application in ...
0
votes
1answer
133 views

How to migrate from ext4 to zfs root filesystem with separate ext4 boot partition?

I'm trying to change my root partition from ext4 to zfs (simple partition, without ZFS volume management functions) by moving all files in a live system (Ubtunu 14.04) from the ext4 partition to an ...
0
votes
0answers
20 views

How does package configuration work during ISO installation?

I am creating my own custom Ubuntu 14.04 ISO, with a different set of packages. I am using debootstrap for this purpose, which creates a basic system in a chroot (fakechroot in my case) that is ...
0
votes
1answer
132 views

Upgrade from Ubuntu 12.04 to 14.04 gives black screen and x cursor on startup

I have a Dell 11 chromebook on which I downloaded crouton, and through that, ubuntu 12.04. 12.04 was working perfectly well until I got a message from the update manager asking me to update to trusty ...
0
votes
1answer
79 views

debootstrap does not extract libc6, does not create /sbin/ldconfig

I am using dbootstrap to create a chroot root file system (Ubuntu 14.04), so that I can use it later to image another machine. I specify all the necessary packages, and debootstrap seems to retrieve, ...
0
votes
0answers
159 views

setup mod_proxy_fcgi phpmyadmin on apache php-fpm chrooted user

I have PHP5-FPM + mod_proxy_fcgi (chrooted) running on Apache2 (mpm_worker) Ubuntu 14. By this every vhost user is chrooted to there home dir "/var/www/html/domain.com/public_html/". Here php in ...
0
votes
0answers
15 views

Add Compass, Composer and Sake to chrooted

My Server is running Ubuntu 14.04 with Plesk 12. Clients have access only to a chrooted shell because I don't want theme to go outside their directory. With any other shell they could access compass, ...
1
vote
0answers
298 views

Copying files into custom uck chroot environment

I have been trying to setup a custom Ubuntu 13.10 ISO, containing programs and utilitiess that are beyond what is installed by default. I am initially using uck and finally got it working for me, ...
0
votes
1answer
92 views

Recover unbootable Ubuntu, boot-partition gone?

I was unable to boot Ubuntu after setting my BIOS to default. I tried Boot-repair and tried a "recommended repair". After a while it asks me to insert the following in Terminal: sudo chroot ...
0
votes
0answers
23 views

Where is commands executed in chroot saved?

Any commands typically run in a normal Terminal session is saved in .bash_history. But I've chrooted into an installation according to these instructions, and exited. Later when I chrooted again into ...
0
votes
1answer
506 views

How do I boot Ubuntu from a USB on an Acer C720 Chromebook?

I installed Ubuntu using the method described in this video: https://www.youtube.com/watch?v=DMyMqqU2Mqs In short, I installed crouton Ubuntu with the unity interface. and when installing Gimp through ...
1
vote
0answers
88 views

Customized sources.list for custom live CD

I recently built myself a custom live CD of Xubuntu 14.04.1. This live CD is used to distribute to my customers to install on their machines with a set of pre-installed applications, some of which are ...
1
vote
0answers
29 views

How can I set vsftpd user-specific access?

I'm using vsftpd (on 14.04) and I want to set user-specific access: - admin has full access to home folder of all users - standard user (everyone from group "users") has permission only for his home ...
1
vote
2answers
83 views

chroot question

I am wondering if there is anyone out there that can explain an error that happens when I try to use debootstrap. sudo debootstrap --arch i386 wheezy /srv/chroot/wheezy http://http.debian.net/debian ...
0
votes
0answers
37 views

Issuing in running apache2 in chroot environmet

I am trying to run the apache2 server from chroot environment following this link http://archive09.linux.com/feature/36331. The only difference is that I started the /usr/sbin/apache2 after getting ...
0
votes
0answers
118 views

Problem running Ubuntu on chromebook

A couple of days ago I bought a ChromeBook and decided to run Ubuntu on it. After a couple of hours on it, I went back on Chrome OS. I usually enter sudo startunity in the developpement console to ...
2
votes
0answers
209 views

Ubuntu for Android, Ubuntu for Devices, LinuxonAndroid project for Ubuntu on ARMv7 machine?

I've looked around but can't find any solid solutions or help on this topic. I recently ordered a machine with an ARMv7 CPU (Cortex A-9, <= 1.6GHz, quad core). The machine also has a Mali-400 ...
0
votes
0answers
114 views

Is it necessary to mount /dev/shm when chroot from Ubuntu Live CD?

Ubuntu is a Debian derivation. Debian squeeze (6.0.0) requires /dev/shm mounting for chroot. I do want to chroot to re-install grub. Does Ubuntu also require /dev/shm mounting for correct chrooting ...
4
votes
2answers
5k views

Chroot into a 32-bit version of Ubuntu from a 64-bit host

Xilinx webPack 10.1 requires 32-bit Linux. Only this old version is compatible with their boards. How to make 32-bit applications work on a 64-bit operating system lists: Installation of 32-bit ...
2
votes
2answers
394 views

How to install program from Live-CD chroot?

I am using Lubuntu 13.04. How can I install programs from a Live CD from chroot?
2
votes
2answers
1k views

using DNS lookup in chroot postfix

I'm trying to set up a postfix set up on my client machines. All machines should use a central ldap directory for common postfix (e.g. aliases, etc). But since postfix runs in chroot postfix is unable ...
1
vote
2answers
1k views

Replace XFCE4 with Cinnamon without Log-In Screen

I have a Google I/O Chrome Pixel that I've been playing around with Crouton. This is my frist real shot at Ubuntu and have made the upgrade from 12.04 -> 13.04. Using chroot I can run both Chrome OS ...
0
votes
0answers
96 views

LTSP installation step failed

Today I've tried installing an LTSP server on a virtual machine (host : Win 8 x64, virtualbox 4.3.6 r191406 as the newer versions have problems), I gave it an additional NIC as host only. Everything ...
1
vote
2answers
989 views

ARM ubuntu fails to get certain packages

I have ARM ubuntu running under a chroot and everything seems to be set up and working well, however when I go to install certain packages I end up with failing to fetch errors, this does not happen ...
0
votes
0answers
146 views

ubuntu 14.04 livecd chroot error

I wanted to try to reinstall grub2 for ubuntu 14.04: run 14.04 livecd mount the root partition and mount dev sys run proc: sudo mount /dev/sdc1 /mnt for d in dev sys run proc; do sudo mount -o ...
1
vote
0answers
435 views

How to get Juniper 7 (R4) working with Ubuntu 13.04 (64) on Chromebook (Crouton install)?

I've been trying to get my company's Juniper VPN to work on my Crouton install. I'm running Crouton on a C720 with Ubuntu 13.04. I was able to get past the JRE issue (Not able to connect to Juniper ...
0
votes
0answers
114 views

All SFTP chroot access is read only?

These are the pertinent lines from my /etc/ssh/sshd_config Subsystem sftp internal-sftp Match Group sftp X11Forwarding no AllowTcpForwarding no ChrootDirectory %h ForceCommand internalsftp ...
1
vote
3answers
140 views

How to enter a chroot without using sudo?

Is it possible to enter a chroot without using sudo? If so, how? I've tried googling, but all I get are results about crouton.
0
votes
0answers
66 views

How do I make a chroot clone of my [current setup] like after a fresh install

Where I am... I know that I debootstrap trusty /chroot-dir and then I... mount --bind /dev /chroot-dir/dev && mount --bind /proc /chroot-dir/proc and then cat ...
0
votes
0answers
413 views

Having an issue with Ubuntu on my Samsung Chromebook?

Ok so first off I had this running pretty slick before my fiance touched it. Booted it back to regular mode. So i have to go back through and turn developer mode on, and reinstall crouton and all ...
0
votes
0answers
53 views

Tightvnc Server - How to [Minimal CPU/Latency] for basic apps over 802.11n direct

Greetings fellow tinkers, and people who... "fix" things... Right then!So I have a Nexus 5 in a chrooted Ubuntu 14.04 that I want to export the display from to a 10 inch tablet via wifi - And before ...
0
votes
0answers
19 views

Is there a guide step by step to use old libraries within a new system or new libraries with a old system for debootstrap or chroot?

The response in here How to run HipHop with an old libc6 (not solved) and libc.so.6: version `GLIBC_2.16' not found was so short (for me, I am mid level linux user, not pro, because I don't know ...
2
votes
6answers
879 views

What exactly is a chroot? Is it similar to a simultaneous dual boot?

It has been suggested to me that the use of a chroot might solve my problem of building an application that must run on an embedded device. I have inferred from this description that it is somehow ...
1
vote
2answers
314 views

Peculiar permissions/group trouble [closed]

I've tried creating a separate user account for rtorrent and sickbeard (a torrent downloader) so everything isn't running as root but I've bitten off more than I can chew. I've chmodded 2770 (setgid, ...