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
Files uploaded using FileZilla with SFTP are missing permissions
I am using chroot in sftp. And it works perfectly, but files uploaded with FileZilla are stored without any permissions (basically 000).
---------- 1 cwsftp sftp 4364328 Jan 19 16:02 hygq8KAZ3seC.128.mp3
This is my setup in the…

undefined
- 3
- 1
0
votes
1 answer
sftp login issue with chroot
I want to be able to create a structure for hosting multiple sites. I want the user files to reside inside /var/www/sites/domain.com and the sftp access to be restricted with chroot.
I've followed some examples on how to set this up, and this is…

Nicolas
- 191
- 1
- 2
- 5
0
votes
1 answer
How to lock a user into a directory (not SSH)
I have regular users who are not SSH'd into a machine but are accessing the machine directly. How can I lock them into their home directory or any directory? At the moment they can successfully run rm -rf /. They can also run all sorts of dangerous…

user974407
- 1,081
- 1
- 8
- 10
0
votes
1 answer
Chrooting Shell Environment on debian wheezy
I created a chrooted user on a directory /home/jail, Inside my /home/jail are the bin,dev,etc,home,lib,lib64 and usr directories. /home/jail/ {bin,dev,etc,home,lib,lib64,usr} are all owned by root:root I set my user's home directory to…

Jm Cruz
- 1
- 2
0
votes
2 answers
Chroot doesn't work in PHP5-FPM + nginx
I have added two line in: "/etc/php5/fpm/php-fpm.conf". There are:
chroot = /home/user/www/public_html
chdir = /
In the server section of my: /etc/nginx/sites-available/default:
root /home/user/www/public_html/site.com;
location ~ \.php$ {
…

JavaRunner
- 91
- 3
0
votes
1 answer
Allow dev user to edit files that sometimes belong to www-data
This question has been asked time and time again but none of the answers seem to answer my specific question - either that or I'm not getting it.
Anyway, as per the title, I'm trying to limit our web developers to a particular folder eg:…

Touff
- 183
- 1
- 3
- 14
0
votes
1 answer
Chrooted user logged out immediately after login
I am trying to use chroot to setup a user who can login via ssh and limit access to the /var/www directory. The server is on AWS running Amazon Linux 64-bit, openssh installed. I used ssh-keygen to generate the keys.
Before I edit the sshd_config…

Complectia
- 1
- 2
0
votes
2 answers
Name Server with Multiple IPs
We have multiple internet connections attached to my company's network, from different providers, and there are authoritative name servers on the network as well, also with an IP from each of those networks. The servers have chroot-ed "named"…

crazedsanity
- 3
- 2
0
votes
1 answer
Chef installation in a chroot (packer): not starting services
I'm trying to use packer.io to create a machine image for a server who's deployment I already have automated using Chef (chef-solo specifically), using the amazon-chroot builder and the chef-solo provisioner (with a few shell provisining steps…

shevron
- 326
- 2
- 4
- 10
0
votes
1 answer
chroot with sftp on centos 6.5
I'm trying to get sftp working with proper chroot configuration on Centos 6.5 server. As for now I get:
sftp user@000.000.000.000
User@000.000.000.000's password:
Write failed: Broken pipe
Couldn't read packet: Connection reset by peer
In…

incogn1to
- 101
0
votes
2 answers
server side cd on sftp client connect
Is there a way with sftp to have it configured server-side to run a cd command when a client connects?
I have my users thrown in to chroot, the folder has to be root:root chowned and cannot be writable by any other users, there are subfolders owned…

miethpo
- 3
- 1
0
votes
1 answer
OpenBSD chroot for nginx/Apache file permissions
I haven't been able to find a satisfying answer on Goole or the various Stack forums:
I noticed that files under /var/www (where nginx and I believe Apache are chrooted by default) have permissions mostly of root:daemon or root:bin. This is true of…

Brett
- 1
0
votes
0 answers
ProFTPD - User can't create directory when in a chroot jail
I've got a CentOS release 6.5 with Webmin and configured ProFTPd 1.34.
I've put my users in a chroot jail. When they logon they are chrooted to their own home directory.
But there is a problem when users want to create a directory using FTP. When…

sagittarius7
- 1
- 1
0
votes
1 answer
Only allow user SSH access to one directory
I have a server running Centos 6.4 and I need to allow a freelancer access to one folder on the server to upload some code and do some testing - I have set their home directory in /etc/passwd…

bhttoan
- 650
- 3
- 15
- 27
0
votes
1 answer
How to keep jailed users from changing directory to parent dirs?
I've chroot users with
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
and I'm the only user in the chroot_list file. Other users log in jailed but when they go to the relative parent directory .. they are able…

Jacksonkr
- 465
- 1
- 7
- 16