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

20
votes
4answers
25k 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 ...
34
votes
2answers
68k 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 ...
35
votes
3answers
4k views

What are the differences between sudo, su, visudo, chroot, and gksu?

What are the differences between sudo, su, visudo, chroot, and gksu ?
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 ...
11
votes
3answers
43k 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 ...
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 ...
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: ...
2
votes
6answers
808 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
1answer
364 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 ...
12
votes
3answers
2k views

What does “${debian_chroot:+($debian_chroot)}” do in my terminal prompt?

In my terminal prompt definition in my .bashrc file, among other things, I have this snippet of code: ${debian_chroot:+($debian_chroot)} What does this do, and do I need it?
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
8k views

Changing write permissions for jailed SFTP denies login

I have scouted over many websites and forums on how to setup an SFTP user that is jailed to a certain directory using CHROOT. Here are the steps I have followed but I can't seem to get write ...
0
votes
3answers
3k views

Error executing sudo in chroot environmet

I am facing a strange problem while using a chroot'd 12.04 Ubuntu. When I try to run anything with sudo I get the following error: sudo: effective uid is not 0, is sudo installed setuid root? If I ...
6
votes
2answers
231 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 ...
4
votes
1answer
522 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 ...
3
votes
1answer
912 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 ...
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 ...
2
votes
1answer
603 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
233 views

CD Based Usage of debootstrap?

I have installed 12.04 xubuntu alternative with whole disk encryption on a machine. I am attempting to set up a schroot usage of backbox 3.01 (an ubuntu 12.04 derivative from what I can tell) under ...
0
votes
2answers
3k views

13.04 not leaving any efibootmgr entries

I made a clean install of 13.04 from a flash drive, but after a reboot the only uefi boot options I have are the basic efi shell entries and the flash drive again - there's simply no entry for 13.04. ...
0
votes
2answers
9k views

vsftpd - restrict users to home directory

Setup vsftpd easily If I run this config: listen=YES anonymous_enable=NO local_enable=YES write_enable=NO dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES ...