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

3
votes
2answers
14k 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 ...
7
votes
2answers
2k views

debootstrap failing to mount /proc

I have researched this, and none of the answers (so far) on here, nor googling seem to match my problem. Here is the situation: I am running Xubuntu 12.04 as a base install, and am trying to set up ...
1
vote
1answer
418 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 ...
1
vote
2answers
354 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, ...
2
votes
0answers
235 views

Is there a proper way to set up a copy-on-write based build env that use your live / as base files?

I'm trying to set up a build environment using chroot, but instead of downloading ubuntu base files, I want to use my live / as base files for the chroot and use c-o-w to redirect any changes made in ...
1
vote
1answer
2k views

How to setup SFTP with Chrooted for Groups

After many trials and errors trying to setup a working sftp server for multiple groups with chrooted directory I decided to share what finally worked for me. I am a novice 2 months into Ubuntu so ...
1
vote
1answer
258 views

64bit chroot on 64bit host

The host is a Ubuntu 12.04 64-bit installation. I'm using schroot to run chroots for several different Linux systems, such as Ubuntu 10.04 i386. The files for the chroots stem from working ...
1
vote
1answer
487 views

vsftpd chroot opps on ubuntu 12.04

I'm unfamiliar with deb based systems, so my apologies if the solution is simple. I'm trying to setup vsftpd to jail users to their home directories. I get the 500 OOPS: vsftpd: refusing to run with ...
2
votes
1answer
876 views

Can't chroot to recover Ubuntu 64 bits

I was trying to get steam for linux to work on my Ubuntu 10.04 LTS 64 bits system. I installed these three (some 32 bit) packages: http://packages.ubuntu.com/quantal/libc-bin ...
1
vote
1answer
137 views

Compile AMD athlon-xp 32 bit kernel in intel 64 bit machine

Can someone tell me how to compile linux 3.7 kernel for amd athlon-xp in a 64 bit intel environment through chroot? I tried setting up a chroot environment but compilation gives me error. Thanks to ...
0
votes
1answer
402 views

How can I change folder permissions in a luks encrypted partition

I have a folder in a luks encrypted partition /media/user/luks-partition/folder on Ubuntu 12.10. I am not able to change folder's permissions. I tried using the nautilus gui and chroot both as ...
1
vote
0answers
44 views

Is there a good ssh jail solution for Ubuntu 12…? [duplicate]

Is there a good how-to/tutorial on setting up a chrooted ssh environment on Ubuntu 12.04LTS. I'm NOT interested in chrooted sftp which is easy to implement. It's jailing users in their home ...
1
vote
0answers
36 views

Can anyone recommend a good chroot ssh tutorial/ how to for Ubuntu 12.04 LTS [duplicate]

Possible Duplicate: Simplest & Easy Way To Jail Users I'm looking for a good how-to/tutorial on setting up a chrooted ssh environment on Ubuntu 12.04LTS. I'm NOT interested in chrooted ...
1
vote
1answer
2k views

Using Chroot with a Java application

I'm working on designing a group of Java programs that I hope to turn into a Java-based OS someday. Until I get a kernel working, I want to just run them on top of Ubuntu. Because of this, I need all ...
0
votes
1answer
204 views

How do I move the mount point of a drive

I have /dev/sda2 mounted as /mnt. I am actually running my system from a volume mounted at /mnt/install (I've chrooted to /mnt/install). I'd like to be able to use that disk from within my chrooted ...
0
votes
2answers
11k 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 ...
3
votes
2answers
1k views

Video driver under lxc container?

Since LXC (Linux Containers) is a kernel level super-chroot, I've been wondering what sort of video driver the containers have: My host is Ubuntu 12.04 64-bit machine with ATI gpu. Will the LXC ...
0
votes
0answers
244 views

ltsp: fat client with motion -> dropbox upload

I would like to install motion on my ltsp fat clients, which actually works well. What I don't know is how to upload the created files via dropbox. Can someone point me in the right direction? I ...
1
vote
2answers
1k views

How to add user to separate filesystem (Armel)

I'm trying to work out how to add a user to a separate filesystem, as described here, specifically point 5: Add a local user and password for the user, then add the user to the adm and sudo groups. ...
1
vote
0answers
617 views

Debootstrap chroot Installation Error

During initial installation (using both Network installation and CD ISO) of Ubuntu Server 12.04.1 LTS (64-bit) as a guest VM on XenServer 6.1 I'm getting this error: Debootstrap warning Warning: ...
3
votes
1answer
352 views

Need to write a script that will jailkit a user and give them access to a particular website directory

I have a ubuntu 12.04 app server hosting a few websites. We need to give access to the developer to only be able upload files to one of the websites. I have installed Jailkit but can't seem to find ...
1
vote
2answers
998 views

Is chroot the right choice for my use case?

Backstory: I am working on setting up a MineCraft server and want to allow admins to have ssh access to the MineCraft server console and appropriate mc server files, but not the whole system. The ...
1
vote
1answer
1k views

How to install Ubuntu in a chroot environment on an Archlinux system?

Currently I'm stuck with an Archlinux system at work. However, I want to be able to package some software for Ubuntu on this machine. So I thought it should be possible to set up an Ubuntu (Precise) ...
37
votes
3answers
6k views

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

What are the differences between sudo, su, visudo, chroot, and gksu ?
1
vote
0answers
339 views

How to rsync a chroot without breaking symlinks? [closed]

I'd like to rsync (backup) a chroot environment from outside the chroot. For that I first make a lvm snapshot of the chroot volume and then run rsync on that. The only problem with this approach: ...
0
votes
1answer
440 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
289 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
298 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
191 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
4k 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 ...
6
votes
1answer
3k 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 ...
6
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
969 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 ...
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 ...
5
votes
1answer
1k 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?
3
votes
0answers
138 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.
5
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
451 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
101 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
595 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? ...
45
votes
2answers
95k 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
4k 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
85 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
1k 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
616 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 ...
23
votes
4answers
33k 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 ...
8
votes
2answers
288 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
2k 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
1k 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 ...