chroot is a command on UNIX-like systems which runs a process under a different root directory.

learn more… | top users | synonyms

0
votes
1answer
22 views

openssh with virtual users and chroot

I'm looking for a way to run a opensshd offering sftp to users as a unprivileged user e.g. on port 8022. This opensshd should take something like a customer passwd file which can include information ...
0
votes
1answer
18 views

How to enable shortcuts (copy-paste) inside chrooted java app?

I instaled java-based app Lotus Notes inside ubuntu 12 chroot on debian host systems. I run it with enabled xhost+ on based system How to enable Ctrl+C, Ctrl+V shortcuts inside Lotus Notes. The ...
0
votes
0answers
12 views

Code Execution From Live USB's

For the purposes of education, I am trying to work out how to execute code onto a hard drive that has been mounted onto a Linux live USB. So far I have downloaded a copy of Ubuntu, and just run the ...
1
vote
0answers
51 views

creating linux device files for bootstrap

I'm currently independently researching device files as a part of learning more about the Linux system in depth. My current goal is to bootstrap Debian Linux through cdebootstrap. I followed the guide ...
1
vote
1answer
119 views

how to mount as read-write filesystem and not read-only

So, I'm trying to install gentoo in a virtual machine. I ran into this problem and began researching what the answer might be. The file system is read only. I can't mount it as read-write. I'd rather ...
0
votes
1answer
68 views

How to make a new SSH user for linux which will allow the user to access only that folder and cannot go back to other folders [duplicate]

How can i make a new SSH user for linux (Ubuntu) which will allow the user only to access that folder and not to go back to other folder, I have searched many tutorials/support for this but those all ...
0
votes
1answer
26 views

Where do we put “mount -t proc …” in a Chroot environment?

Please forgive my ignorance... I have a number of Debian Chroot environments for testing software. They were necessary due to our package maintainer testing us under the same. My test scripts use ...
0
votes
1answer
34 views

Install stuff in a schroot

I have a question regarding chroots: say I have a program compiled and built into a root file tree structure, ex: . ├── bin │ └── software ├── etc ... That is, to install this, I'd have to merge ...
1
vote
0answers
35 views

setting up mirrorlist for pacman.d in chroot / installing arch to usb stick

I am new to ArchLinux and—moreover—deeper linux noodling. I am following the guide on the Arch Wiki. I am at a step where I set up the mirror list for repositories. I have my mirrorlist file in ...
0
votes
1answer
516 views

Compiler tools, execv and “exec format error” under s390x chroot

I have a Debian 8 x86_64 machine with two chroot environments. The first is armel and the second is s390x. armel was installed last week, and s390x was installed recently. armel is fine both before ...
0
votes
1answer
69 views

Emacs in a Debian 8 chroot environment?

I'm working with a Debian maintainer on a failed self test for a software package under ARMEL. The maintainer was kind enough to help me duplicate his environment. When I attempt to add ...
0
votes
0answers
35 views

Roll back to libc6-amd64 using a live cd and chroot on ssd with GPT filesystem

I was attempting to follow a steam guide to install a dedicated game server. See my original post here. Basically I really messed up. I attempted to roll back but when it downgraded my network ...
1
vote
1answer
16 views

Linux unattached chroot or directory?

Would it be possible to chroot or otherwise create an unlinked(in the main root file system) directory? From what I understand, the kernel automatically deletes any file/folder that has no link in the ...
0
votes
1answer
93 views

Is running ldconfig inside fakeroot possible?

I am trying to run debian wheezy in chroot (got debian files from https://github.com/tianon/docker-brew-debian/blob/02108ee636f54b504e2aec4ee7bb59a2de8a5b99/wheezy/rootfs.tar.xz) That is the way i'm ...
1
vote
1answer
75 views

Empty Boot folder on chroot Debian

I have wanted to create a custom livecd of Debian. I created a basic Debian (jessie) with debootstrap and began to configuring it. When I wanted to get vmlinuz and initrd files, I could not find them ...
0
votes
1answer
280 views

Value too large for defined data type

I am following this guide on how to chroot arch linux in my android device. Welcome back gnu! - My revenge on Android In case you do not read the guide, I made a linux.img file on my pc, using dd ...
4
votes
0answers
222 views

How to create ftp restricted user with vsftpd? (by terminal in ubuntu)

I have installed ubuntu 12.04 with vsftpd. I need to create ftp users able to access only directories like /var/www/nameDirectory. I though it was a very basic feature, but seems not... I tried to ...
0
votes
0answers
26 views

ccache fails to create directory within AFS … from a chroot environment

probably a complicated; unusual setup; but maybe somebody has an idea. So, basically my company has configured all our "compute" servers using the good old AFS (andrew file system). This means: i can ...
2
votes
1answer
173 views

Unable to execute root commands inside an openvpn script

I'm using the openvpn option client-connect to run a script when a client connects. The script works fine when I use simple commands but when I add commands that need root privileges it doesn't work ...
0
votes
1answer
266 views

Chroot into Arch Bootable USB

I have a bootable USB drive with Arch Linux recently installed on it (Linux kernel 3.19.2). I want to plug it in to my computer and chroot into it (or possibly run it inside a container, using ...
1
vote
1answer
105 views

“Cannot open audit interface” upgrading libuuid1 — is selinux confused?

I have a Debian chroot on a Linux system running an alternative Linux distro. It's always worked fine in the past but in the past few months I've found myself unable to upgrade libuuid1. Instead it ...
1
vote
1answer
145 views

Starting a chroot and drop into nonprivileged user home

I need to (temporarily) jail a non-privileged user. I tried something like: sudo chroot --userspec=mcon:users /wherever/chroottarget /bin/bash -i This almost works, but it doesn't set env vars ...
1
vote
0answers
243 views

Set up sftp mysql authentication with chroot

How do I set up an openssh SFTP server that authenticates against a MySQL table where the users are jailed? Each user will need to have its own jail: /home/sftp/john /home/sftp/jane etc.. However ...
3
votes
1answer
2k views

Mounting /dev/shm in a Gentoo chroot on Xubuntu 14.04

I'm trying to install Gentoo, and instead of using one of the bootable minimal install CDs provided by Gentoo, I'm using a chroot in Ubuntu. I'm mainly following the instructions outlined here, ...
0
votes
1answer
110 views

How to hide subdirectories within chrooted directory from users who don't have access

Apologies if this problem has been answered before / elsewhere. I've had a hunt around but am unable to find anything. If so please point me in the right direction. I'm running a linux ftp server ...
0
votes
0answers
156 views

Is password-less access to SSH using chroot setup possible?

I was able to log in into a ssh server using public and private keys without using a password. I was able to also setup chroot and jail a new user and avoid that the user could connect via ssh but ...
0
votes
2answers
434 views

Have Arch Linux, want slack, must keep both; no cd, no usb or money; can chroot, pre-partitioned: GPT

I have a laptop with Arch Linux on it [averagejoey2000@JoeyHobbyPCarchLinux arch-install-scripts]$ lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 596.2G 0 disk sda1 8:1 0 ...
4
votes
1answer
125 views

How to distinguish 'syscalls' form 'int 80h' when using ptrace

As far as I know, ptrace can only get syscall number by PTRACE_SYSCALL, but syscall number is different in x86 and x64. So is there any way to figure out where this syscall real origin? I am now ...
0
votes
1answer
29 views

Package downgrade from live environment

I run arch Linux on an hp laptop. I installed a graphical login manager (gdm) and during boot, the kernel unpacks, systemd starts, but when it attempts to start my login manager "An error has ...
0
votes
1answer
170 views

Passwordless linux account converted to Chroot jailed sftp now requires password?

I created a user and did an RSA key exchange for a passwordless connection. This worked. I also created a chroot jailed sftp only user. This also worked. I then created a third user. I set up the ...
1
vote
0answers
66 views

How to get out of a chrooted environment in ArchLinux

I'm attempting to install ArchLinux via SSH. At the moment I'm not at the machine, but I do have root access to it. I have SSH setup in the Chroot environment (arch-chroot). Is there anyway, while ...
1
vote
0answers
25 views

Is there a way to use ACL to deny access to folders by user, preferrably by making them invisible?

Is there a way to use Linux's Access Control Lists feature to deny access to folders by user, preferrably by making them invisible? This is needed for a chroot SFTP environment where we want to block ...
1
vote
2answers
1k views

Chroot ssh user to home folder results in Connection refused

I'm trying to give someone ssh access to a (Ubuntu 14.04) server I've got, but I want to limit them to their own home folder. So I'm trying to follow this tutorial. I first created a user (sudo ...
0
votes
1answer
300 views

ubuntu on chroot apt-get update fail - Unable to parse package

When I chroot under Ubuntu 12.04 and run apt-get update in my chroot home, I get: 100% [21 Translation-en gzip 0 B] [22 Translation-en bzip2 3E: Unable to parse package file ...
1
vote
0answers
278 views

Unity closes on Ubuntu Logout, but does not complete logout. (Crouton on Chromebook)

I've got a Chromebook 14 "dual-booting" Ubuntu 14.04 using Crouton with the stock Chrome OS. I've had it like this for a while with everything operating fine. As you know, Linux Distros are kind of ...
0
votes
1answer
46 views

Using my server to do computationally heavy tasks

I have a laptop I do most of my computing on but it's very lightweight and it takes ages to compile anything on, or do any heavy tasks. Something like installing an emacs plugin or a cabal package can ...
0
votes
1answer
146 views

Install windows on chroot of linux

How do I install Windows on chroot in Linux, if it is possible at all. I am confused about the meaning of chroot so any help would be appreciated.
1
vote
3answers
250 views

Chroot sftp jail seems to be insistent on not working

So I followed this guide to the letter: http://markshust.com/2013/04/01/how-setup-chrootd-sftp-account-linux and a few other guides as well, but I seem to be incapable of getting a connection. I am ...
1
vote
1answer
138 views

Is there any way to virtualize a Linux installation on another partition?

The basic idea is like this: run another Linux installation as if it was in VirturalBox or VM ware. With "chroot", I can do something similar. For example, I can mount the partition where Arch Linux ...
2
votes
0answers
1k views

rsync error: symlink has no referent

I am trying to configure rsnapshot (which uses rsync) to backup a Windows server but I am having trouble with rsync being unable to follow a symlink on the server to be backed up. Setup: Windows ...
2
votes
2answers
4k views

How to start Xorg-server inside plain chroot?

when I runchroot /somepath /usr/bin/startxI got something what looks like an evdev problem... (I correctly --bind mounted /dev/ /dev/pts /dev/shm /proc /sys /tmp ) The screen is displayed and ...
11
votes
6answers
12k views

Start a systemd service inside chroot

With init scripts (or with openrc) I alway could run services from a different installation root. but when I run chroot /somepath/to_root /usr/bin/systemctl start someservice I got: Running in ...
5
votes
1answer
9k views

chrooted sftp user with write permissions to /var/www

I am getting confused about this setup that I am trying to deploy. I hope someone of you folks can lend me a hand: much much appreciated. Background info Server is Debian 6.0, ext3, with ...
0
votes
2answers
3k views

chroot on OSX as a different OS

I was wondering if anyone has been able to use chroot on OSX to run another OS (ubuntu, centos). I know that they are very different, but almost everything I want to use this for wouldn't care about ...
4
votes
1answer
2k views

schroot build environment setup how to avoid bind-mount home

The recent linux distributions such as Fedora and Ubuntu all use chroot environment to make the build. Because when making the build often it needs to install some special tools, and to install to the ...
1
vote
0answers
840 views

Logging rssh/chroot SFTP users

I'm trying to log activity (uploads, downloads, renames, deletes) for SFTP users. If I SFTP with a normal user, it logs to /var/log/secure. If I SFTP with a rssh user, it logs that they connected, but ...
1
vote
2answers
469 views

OpenBSD 'device not configured' error in chroot-ed environment

I have asked this question on StackOverflow but given the comment there it seems like it fits here better. This is almost certainly a system configuration issue—you didn't set up the jail ...
0
votes
1answer
579 views

Directive 'ChrootDirectory' is not allowed with new OpenSSH

I am trying to set up chrooted SFTP access but OpenSSH is giving this error: /etc/ssh/sshd_config: line 94: Bad configuration option: ChrootDirectory /etc/ssh/sshd_config line 94: Directive ...
1
vote
0answers
697 views

chroot under Mac OS X

So I have googled a lot with different search terms, but didn't find anything usable, only that intead of ldd I have to use otool -L to see the used libraries of a programm. I tried to copy bash into ...
1
vote
1answer
591 views

Install full version of Unity on Chrome OS using crouton

I have an Acer Chromebook. Using crouton, I installed Ubuntu (unity) on it. I am pretty familiar Ubuntu 12.04. But the installed one is very minimized package. My fonts are missing and I manually ...