A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children.
Questions tagged [chroot]
413 questions
0
votes
1 answer
Do any Unix/Linux FTP daemons allow users to be "jailed" without using chroot?
When setting up an FTP account for a specific purpose - e.g. as a drop-point for sharing data files - it seems sensible to give the user access only to the particular directory, and no view of a wider file system.
On *nix systems, in particular,…

IMSoP
- 490
- 2
- 10
0
votes
1 answer
CentOS 6 restrict user ssh access to his home folder
I am trying to restrict a newly added user to his homedir /home/username. Don't want him to be able to cd out of it.
I have this my sshd_config:
Match User username
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
…

Allanon
- 111
- 1
- 5
0
votes
2 answers
Need help having a particular setup for vsftp with virtual users with access to a particular folder
as part of some services we are offering to some companies, we have gradually became the hosting providers for them using amazon services. so we host 2 web sites on amazon. the root documents for the website are : /var/www/vhosts/{comp1.com,…

black sensei
- 609
- 3
- 10
- 25
0
votes
1 answer
Centos6.4: User home directory for sftp
Currently setting up a Centos6.4 box and are wanting to jail sftp users upon login. I've been following the notes here http://www.thisisnotsupported.com/sftp-chrootjail-on-centos6. But I have one issue relating to the user home directory.
This…

Simon Bennett
- 135
- 1
- 5
0
votes
1 answer
Is it worth to use chroot when running web applications?
My setup:
In production I'm using one virtual server per one web application shard. Shards are behind load balancer.
In backstage we run web application + DB on a single virtual server. The backstage is only protected by auth digest for non tester…

Robert Zaremba
- 103
- 5
0
votes
1 answer
Apache 2.2.4: problems chroot with modsecurity
I've been installed mod_security. If i simply include in the httpd the configuration files of mod_security, it starts normally. Indeed, if i try to add SecChrootDir /mnt/chr , httpd will start, but at the request of the page it returns either 404…

sl34x
- 23
- 4
0
votes
1 answer
Apache + PHP-FPM + chroot results "File not found." error
I want to set chroot to the DocumentRoot using PHP-FPM pools' chroot attribute. With the settings below, whatever I do I get only a "File not found." error:
/etc/php5/fpm/pool.d/example.conf
[example]
user = example
group = example
listen =…

user171447
- 13
- 3
- 7
0
votes
1 answer
How to use abstract names of unix domain sockets with fastcgi in nginx?
I tried some perl examples of unix domain sockets using abstract names:
Created a socket starting with a null character:
my $socket_path = "\0wibble";
using netstat -nlp I can see the socket:
unix 2 [ ACC ] STREAM LISTENING 309510…

Weber K.
- 131
- 8
0
votes
1 answer
PXE server - ubuntu setting username/password later - is it possible?
so I am writing a program in mainly C/C++, though I think this question fits under server fault as it is related to the Linux distro Ubuntu.
So what I am looking for is a way (possibly hackerish-way) to install Ubuntu 12.04 (or later), BUT without…

dusz
- 155
- 4
0
votes
1 answer
Is debootstrap chroot safe?
I followed this tutorial http://wiki.debian.org/chroot on Debian Squeeze AMD64, to get a separated environment.
This chroot is really safe? In others chroot tutorials, create a chroot for an application is really hard, with this tutorial appears it…

Eghes
- 89
- 7
0
votes
2 answers
chroot SFTP to another users subdirectory
I've successfully set up SFTP to chroot a user to their home directory.
However, I have a case that I haven't been able to find any examples on, and the odd permissions needed for chroot make me wonder if I can do this.
I need to have a user, say,…

BWAZ
- 1
- 1
0
votes
1 answer
cygwin sftp chroot cannot view contents of bound mountpoint
I'm trying to give user2 access only to his home directory and full permissions on /cygdrive/e. I created a Data/ directory within his $home, added a bind directive in /etc/fstab (see below), and issued a mount -a.
I've got cygwin installed and…

rojo
- 131
- 1
- 6
0
votes
1 answer
Cannot log in via chroot SSH
I not only want to transmit files via sftp, but also want to log in via ssh.
Here is what I changed in sshd_config
Match Group ssh_jail
ChrootDirectory /mnt/chroot
I have mounted /mnt/chroot/dev, /mnt/chroot/dev/pts, /mnt/chroot/proc,…

yylyyl
- 11
- 1
0
votes
1 answer
updatedb within chroot
I'm running a Debian wheezy under chroot and I notice that updatedb doesn't work !
I think it's because of missing entries inside fstab. Am I wrong ?
Any advice to fix this ?

Stef
- 572
- 1
- 6
- 16
0
votes
1 answer
Postfix chroot jail doesn't work
Trying to setup Postfix to run chrooted. Only bit of info on this comes from the man page which simply says to follow the instructions in master.cf.
master.cf is self explanatory, just set 'y' in the chroot column. BUT NO, it still doesn't work.
#…

w00t
- 1,164
- 3
- 19
- 35