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
0
votes
1 answer

How do I properly chroot Nginx and uwsgi?

I have a pretty good idea of how to do this, I just wanted to make sure I wasn't going to be seriously screwing stuff up before I deployed it. I have a web application which uses uwsgi and nginx, and I wanted to chroot the app to a specific…
0
votes
1 answer

How to chroot FreeRadius

I have set up FreeRADIUS 2.1.12 on Debian for authentication in a WPA2-Enterprise environment. Now I'd like to jail it with chroot. There is a parameter in radiusd.conf configuration file pointing to the chroot location: #chroot =…
0
votes
1 answer

SFTP restrict users to a few directories

I run a game server and I have a few people that I want to give access too the server to help develop. I am trying to let them have access to only these directories /var/www/Update /root/gamed/config Each user will be placed under a group called…
tomirons
  • 103
  • 2
0
votes
0 answers

SSH chroot solution for Mutt

We have an environment tailored for our users to log in via ssh and instead of gaining access directly to a shell, users have a script in place of a shell. The script simply launches Mutt on the user's Maildir. The problem is that Mutt has an…
unixpipe
  • 11
  • 1
0
votes
1 answer

How to set ulimit in chroot with --userspec

I have script to create a minimal chroot (below), but I can't figure out how to get ulimit to work on the chroot'ed process: #!/bin/bash user=$1 apps="$2" cmd_to_run="$3" shift 3 directory="minimal_chroot" if [ ! -d "$directory" ]; then mkdir…
d0c_s4vage
  • 111
  • 5
0
votes
1 answer

Mininet additional veth pair between host and server

For those who don’t know - Mininet is a tool that allows for the automated creation of multiple OVS switches, chroot linux ‘containers’ as hosts and links them all together to prototype OVS powered networks. I’m trying to create a slightly out of…
Alex Turner
  • 313
  • 4
  • 10
0
votes
1 answer

Cannot get static file with chroot wordpress

I was trying to configure chroot with php-fpm and mysql. I managed to work it out, however when I try to reach files other than index.php (like css, png etc.) it keeps giving 404. However when I disable chroot, it works %100 correct. My directory…
Harun Baris Bulut
  • 455
  • 1
  • 8
  • 21
0
votes
0 answers

Chroot master process Nginx 1.2.1

I want to install nginx not current stable version but in one currently deposits, and chroot the process. I followed some tutorials including: Securing Debian Manual Appendix H - Chroot environment for Apache and tried to adapt to nginx, but without…
Ephemeral
  • 244
  • 1
  • 10
0
votes
1 answer

vsftp error: 500 OOPS: child died

I installed vsftp, and then setup the config file as following: …
Hunter
  • 3
  • 1
  • 1
  • 4
0
votes
2 answers

Nginx and chroot users - Permission denied

I use nginx 1.4.4 and I created a chrooted user. This user can only see his /home/user folder, and I created in a "www" folder. I put in my virtual host file : root /home/user/www; But I have an error : *1 stat() "/home/crm/www/" failed (13:…
Vincent LITUR
  • 405
  • 1
  • 6
  • 9
0
votes
1 answer

Run chroot's /etc/init.d on system startup?

So I have this dedicated server that is running Debian. I have an intense business need (client's requirement) that I also install Gentoo as a Chroot. I have successfully done so, but now, I am trying to figure out to call Gentoo's /etc/init.d from…
hopeseekr
  • 281
  • 1
  • 2
  • 9
0
votes
2 answers

chroot: can't resolve domain names

i can't resolve domain names in chrooted environment - in the normal shell it works fine. i'm using plesk 11.5 and my chroot environment contains the following: https://gist.github.com/xarem/5356ca94367ea8666e23 my resolv.conf: search…
Ueli
  • 191
  • 4
  • 11
0
votes
1 answer

How to create chroot jail with ability to change some system settings

How to properly create chroot jail (on Ubuntu, or some some other Linux if not applicable) to make user able to edit system settings (eg. with ifconfig) and be able to communicate with external scripts? The use case would be to enable user to…
Tadeck
  • 119
  • 7
0
votes
1 answer

Set Users as chrooted for sftp, but allow user to login in SSH

I have setup a ssh server on debian 7, to use sftp connection. I chrooted some user, with this config: Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp But if i want login with one of this chrooted users in ssh…
Eghes
  • 89
  • 7
0
votes
1 answer

How to prevent non-chroot user access to system files

My FTP Server has 5 Users namely user01,user02,user03,user04,user05. Shared Folder /home/ftpusers Inside the folder... /home/ftpusers/user01 /home/ftpusers/user02 /home/ftpusers/user03 /home/ftpusers/user04 …