Questions tagged [chroot]

A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children.

413 questions
1
vote
0 answers

Mounting /var/www for File recovery

I'm in the process of recovering my server's files in a "Rescue" mode. Its a Ubuntu 12.04 with 2x3TB in RAID1. The instructions were to SSH into the server in "Rescue" mode, mount the partitions, chroot into /mnt and recover my files. I also have to…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
1
vote
1 answer

Add write permissions for chroot user on centOS 6

I've a jailed user "ftest" (in /home/ftest) but he can't create files or folders within the jail. User was added by: useradd -g nginx -G sftpjail -s /bin/false Permissions and owners are: 755 root:sftpjail /home/ftest 755 ftest:nginx…
1
vote
2 answers

Setting up chrooted shell accounts with schroot and debootstrap on Ubuntu 10.04

UPDATE: I never did get this figured out. Instead i ended up jsut using jailkit since there is a ton (though sometimes outdated) documentation on usage. Id still be interested in knowning how to get schroot to work though. IVe found a ton of…
prodigitalson
  • 213
  • 3
  • 9
1
vote
0 answers

Chrooted from LiveCD: Bad IO performace

my Ubuntu Server installation is broken, so I grabbed a Ubuntu Desktop CD, mounted my Ubuntu installtion on my hard disk and chrooted into it. But now my IO performance is really bad: # time dd if=/dev/zero of=/tmp/foo count=1 1+0 records in 1+0…
Marta
  • 11
  • 1
1
vote
1 answer

SSH - SFTP/SCP only + additional command running in background

there are many solutions described to get ur SSH-connection forced to only run SFTP by modifying the sshd_config by adding a new group match and give that new group a Forcecommand internal-sftp Well that works great but i would love to have a little…
Chris
  • 11
  • 2
1
vote
2 answers

Jailkit not locking down SFTP, working for SSH

I installed jailkit on my CentOS 5.8 server, and configured it according to the online guides that I found. These are the commands that were executed as root: mkdir /var/jail jk_init -j /var/jail extshellplusnet jk_init -j /var/jail sftp adduser…
doublesharp
  • 217
  • 1
  • 3
  • 12
1
vote
2 answers

openssh sftp chroot

I chrooted a user to the directory /var/www/upload using ChrootDirectory /var/www/upload in my etc/ssh/sshd_config. The permissions of all the files in var/www/upload is 755 and owner is root:upload_user. However, I still cannot modify the files.…
Zulakis
  • 4,153
  • 14
  • 48
  • 76
1
vote
2 answers

vsftpd and home directories of chrooted local users

NOTE: Users are chrooted and their local_root is set to /srv/ftp. Why vsftpd forces local chrooted users to have home directory? It will refuse to work if there is not any. And I've found the following in the code: secutil.c:53 /* Always do the…
Roman Byshko
  • 254
  • 2
  • 13
1
vote
1 answer

Chroot / sFtp / Ftps Problems

regular debian admin, i am faced to a complex situation and i appreciate your advices... I have a server with chroot environment that is working without problems up to now : Chroot user : store chroot path : /home/store I have in this chroot…
tdldp
  • 11
  • 3
1
vote
1 answer

installing debian with debootstrap and lxc instead of debootstrap and chroot

So I need to 'install' (or rather prepare a root filesystem for) a Debian system and that was done with debootstrap and chroot before. However due to the not-very-existent isolation of chroots (with regards to networking, reboots, etc.), this is a…
Michael
  • 285
  • 4
  • 16
1
vote
2 answers

PHP-FPM, chroot, Ubuntu Precise 12.04, and no access to DNS

There's a plenty of advices across the Internet on how to enable DNS in chroot. The problem is that there's no /lib/libnss* files in the Ubuntu Precise. I've tried to copy these files from /etc/: hosts, nsswitch.conf, resolv.conf and the entire /lib…
Pavel Koryagin
  • 255
  • 1
  • 3
  • 8
1
vote
1 answer

chrooting an application

I have an requirement that requires all applications running on a server in a DMZ to be chrooted. How does one chroot an application using Ubuntu? Are there any good online guides?
Tucker
  • 165
  • 1
  • 3
  • 10
1
vote
1 answer

is doing mount -t proc none /proc unsecure for a chroot environment?

What does mount -t proc none /proc do inside the chrooted environment? After doing that, when I run htop or ps aux inside the chrooted environment, I can see the actual root's processes. Does it mean mount -t proc none /proc makes the chroot more…
user269334
  • 161
  • 2
  • 5
1
vote
3 answers

SFTP to chroot and SSH to manage system in one config?

We have a webserver where users are allowed to upload (SFTP) large files in a chroot environment. We also want to be able to use SSH to manage this server. In our old situation we used the system sshd and a chroot environment with a seperate sshd…
Jorisslob
  • 45
  • 1
  • 6
1
vote
1 answer

Executing command inside a chroot from an apache/php script

I need to unit test some bash scripts, I have setup a debian squeeze in a chroot. From command line I can use chroot /directory my-command, ou schroot -d / -u root my-command, but I need to run theses commands from a PHPUnit test, runned by Apache…
Cédric Girard
  • 417
  • 2
  • 12
  • 25