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

0
votes
1answer
371 views

How to start service in a chroot independently of the host system?

I'm using chroot to create ARM Ubuntu installation from Ubuntu Core image. If I mount /proc and /sys all started services intercept with host system (trying to restart dbus is the worst thing it have ...
1
vote
1answer
264 views

A specific user is unable to log in to vsftpd

I am setting up a new user let his name be ftpguy. He has access to only one directory /var/www/xxx. I have already chowned the directory so that he has write and read privileges. The user is also ...
0
votes
0answers
255 views

a serious GRUB issue

Everything went on well. Today morning when I rebooted my workstation, I was appalled by the grub rescue screen that appeared on boot up. I could not guess what could be the reason for this. Trying to ...
0
votes
2answers
181 views

Customizing 12.04 from terminal

I recently read a blog post on customizing Ubuntu 9.04 (I believe) via the terminal. It explained how to download all the Linux base packages and create a Linux distro inside of a directory and then ...
1
vote
1answer
1k views

How to install java inside a chroot?

I want to execute a java program inside my debootstrap-chroot on an ubuntu machine for which I need to have java installed inside the chroot jail. I tried to install it using : apt-get install ...
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 ...
5
votes
1answer
2k views

How do I add more variants or custom packages to debootstrap?

I have a set of packages that I wish to install along-side the minibase variant in debootstrap. I'm having the hardest time figuring out how to customize variants so that more than just the base is ...
5
votes
2answers
2k views

Upgrading Ubuntu chroot environment?

What is the proper way to upgrade Ubuntu chroot environment to a newer Ubuntu release? The chroot environment has been originally set up using debootstrap. The proper way to upgrade a Ubuntu server ...
2
votes
6answers
822 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 ...
14
votes
3answers
3k 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 ...
4
votes
1answer
775 views

What is the difference of chroot, dchroot and schroot?

What is the difference of chroot, dchroot and schroot? What do they have in common? Where are the differences? Which one is needed for what?
2
votes
0answers
133 views

How I can run Android 4.0.4 in chroot on Ubuntu 12.04 on the Pandaboard ES?

I want to run fully functional Android 4.0.4 on my Ubuntu 12.04 installation on the Pandaboard ES with the LXC containers.
4
votes
2answers
2k views

How I can run ubuntu in chroot on Android?

I want to run fully functional Ubuntu on my Android device in chroot. But I have some trouble with upstart. In chroot "it will actually run /sbin/telinit", so how i can run upstart or replace it with ...
1
vote
1answer
374 views

How do I update other Ubuntu partitions without rebooting into them?

I have a number of Ubuntu partitions on my computer. This allows me to run previous, current and development versions concurrently. I'd quite like to install updates to the other partitions, without ...
4
votes
1answer
99 views

Fake program runtime environment

Is it possible to run a program in a fake environment? I have a tool that requires a certain folder to be in /mnt/cdrom. I have the all the files from that cdrom stored in another folder, say ...
0
votes
1answer
577 views

Changes to user's home directory not updating

I've just made changes to a user's home directory (using usermod -d) - but I'm still going to the old directory when I login (via sftp). Do I need to restart a user service to pick up these changes? ...
36
votes
2answers
71k 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 ...
2
votes
4answers
3k views

Why does the sudo command not work in chroot?

I just installed a 32-bit chroot to run on my 64-bit system. In the chroot environment, the sudo command doesn't work, it says sudo: command not found Also, when I try the su root command, my ...
1
vote
2answers
80 views

Network Problem While Reinstalling Grub

I'm trying to reinstall grub on a second disk, following the instructions at Purge & Reinstall Grub. After doing sudo chroot /mnt, when I attempt apt-get update, I get lot of failed to fetch ...
3
votes
1answer
924 views

Install program from source to chroot env

I have an program source (Remmina) and want to install it to chroot environment. Remmina uses cmake system. I can install it to chroot using: sudo make install DESTDIR=mychroot but this is not ...
0
votes
3answers
552 views

Servers running from chrooted Ubuntu on HP TouchPad?

The problem: servers appear to be broken inside my Ubuntu chroot. No matter what kind of server I try to run, they all seem unresponsive (VLC server won't respond to client, mkRemote doesn't move the ...
20
votes
4answers
26k 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 ...
6
votes
2answers
241 views

How do I create a chroot of an earlier version of Ubuntu?

I'd like to create a virtual instance of the latest LTS so I can test the software I'm writing in a way that more closely matches our production environment. There seem to be many, many different ...
3
votes
1answer
1k views

How to chroot into persistent installation?

To chroot into 'normal' installation requires just mount of common /, /proc, /sys and /dev to do normal administration tasks. But how to proceed with so called 'persistent' installation (see here)? ...
3
votes
1answer
962 views

Install FTP server with support for virtual users

I'm trying to install an FTP server on Ubuntu 11.04. I've installed vsftpd, but I had no success in getting it to work with virtual users. I want to be able to have give fake users and direct them to ...
5
votes
1answer
2k views

How to chroot Ubuntu+1?

What is the recommended way to use chroot from Ubuntu Stable (in my case 11.04) with Ubuntu+1 (11.10)? Linked (but probably separate) is "Is there anything special that I need to do in order to get ...
3
votes
1answer
917 views

upgrade a kernel when in chroot. how to?

I am trying to build a custom cd using uck. Now, i want to upgrade the kernel, remove the old kernel and then create the iso. I am able to upgrade the kernel but I am not able to switch to the new ...
2
votes
1answer
609 views

Clean up Chroot

Is there way to quickly clean up or revert your chroot to its previous new state, without reinstalling or re setting it up, so I could start fresh again?
1
vote
1answer
3k views

How to get pulseaudio working from chroot? [closed]

I've got a chroot environment with the same architecture as host environment. I'm trying to get apps from chroot be able to play sound with PulseAudio. I've tried the tutorial from Arch Wiki and ...
10
votes
2answers
43k views

How to setup a SFTP server with users chrooted in their home directories?

I have been trying to set up a SFTP server with multiple users chrooting into their home directories. I followed the advice on this guide and then executed the following commands on the user's ...
1
vote
1answer
224 views

Libraries used by C# executables

I am having a problem when I try to run C# executables (compiled with mono C# compiler at 10.10 server) inside a chroot jail. In order to run the executable inside the jail I need to include the ...
1
vote
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 ...
2
votes
1answer
8k views

Give ftp users access to directories outside their root using symlinks

I tried to give proftpd virtual users access to directories outside their home paths using symlinks I created as root through the console. /var/ftp/users/test is the home of the user named test. ...
4
votes
1answer
2k views

Is there an easier way to chroot than bind-mounting?

Most of the time I use the chroot to rescue an existing installation from usb. When I chroot into another system I have to manually bind-mount proc, sys, dev and dev/pts by issuing for example: ...
3
votes
2answers
8k views

Need ProFTPd to follow symbolic link

I have 2 folder: /var/www/project1/ /var/www/repository/module/ and I have this symbolic link: /var/www/project1/module/News => /var/www/repository/module/News I know the target is outside the ...
6
votes
1answer
531 views

Adding user to chroot environment

I've created a chroot system in my Ubuntu using schroot and debrootstrap, based on minimal ubuntu. However whenever I can't seem to add a new user into this chroot environment. Here is what happens. ...
3
votes
2answers
1k views

Ubuntu chroot “No such file or directory”

I have a web application where I create some folders on my server and put executables there. Then I try to run them with chroot but I get a message that access is denied there. I tried chmod -R 777 ...
6
votes
2answers
276 views

How to build packages for Maverick while running Lucid?

I would like to be able to build a package for the Maverick distribution release of Ubuntu, while running the Lucid distribution release. I found this page: https://wiki.ubuntu.com/DebootstrapChroot ...
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 ...
4
votes
1answer
526 views

How to boot from a debootstrap based install?

I would like to boot a testing Ubuntu release from a directory (which contains a debootstrap based install). As far as I understand I just need someway to tell the boot process (initrd scripts?) that ...
7
votes
1answer
786 views

Mounting a network filesystem into schroot

I'm using a network file system (AFS) and I would like to also mount it into my schroot. Adding a line to /etc/schroot/mount-defaults, with bind or rbind in the options didn't help: schroot always ...
11
votes
3answers
44k 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 ...