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
4 answers
Vserver: secure mails from a hacked webservice
I plan to rent and setup a vServer with Debian xor CentOS. I know from my host, that the vServers are virtualized with linux-vserver.
Assume there is a lighthttpd and some mail transfer agent running and we have to assure that if the lighthttpd will…

lukas
- 1
0
votes
1 answer
OpenSSH, ChrootDirectory, WinSCP. How do I allow wget and tar?
I think my question is really: How do I follow the ChrootDirectory directions here to allow interactive shell?
I have a virtual server at Linode running Ubuntu 10.04. I will be hosting a Drupal site for a friend. I'd like to give him the ability to…

tetranz
- 315
- 2
- 6
- 14
0
votes
1 answer
How do I properly jail a user in Debian, giving them access to select applications?
After failing to use makejail, I followed a howto for setting up a jail using a script (this one is for Debian etch, but I'm using lenny -- seems to work ok though). However, it gives the user a very limited environment with almost no applications…

Nick Bolton
- 5,126
- 12
- 54
- 62
0
votes
3 answers
FTP server configuration
I am configuring VsFTPd 2.2.2 server on Debian 5.0.
I want user after login can see and edit just two dirs:
/home/user/
/var/www/project1/
/var/www/project2/
Possible solutions
I can Chroot user just in one of this directories.
But I dont want to…
irolla
0
votes
2 answers
On Ubuntu, how to design a monitor to run a process when a file is written to a directory?
I want to run a process when a file is written to a directory on Ubuntu. I understand I can write a monitor to do this. (ie not an event based trigger but a 'monitor').
To implement this - other than writing a for loop of infinite duration in C…

Hawkeye
- 2,699
- 9
- 30
- 35
0
votes
1 answer
What is the easiest and cleanest way to create a chrooted SFTP on Centos 5.4?
I would like to setup a SFTP with chroot (or equivalent) login to my Centos 5.4 server in a clean way. By clean way I mean by using only the YUM command if possible and with something easy to maintain and easy to extend (for example an easy way to…

benjisail
- 1,331
- 5
- 19
- 32
0
votes
3 answers
Chrooting SFTP of a particular user
I want to give SFTP access to a particular user but would like to jailroot it so that her view is limited to only her home directory. For the rest of the users of the system, it should remain as normal.
Is it possible?

sharjeel
- 199
- 1
- 11
0
votes
1 answer
vsftpd restrict local users to home and group directories
i've got vsftpd install on an ubuntu server 9.10
i can use chroot to restrict users to their own home directories but i also want to give them access to a group shared folder
for example, users foo1 and foo2 are local users in the group foos
i want…

wag2639
- 2,145
- 6
- 24
- 33
0
votes
0 answers
chroot vs home_folder in vsftpd
I'm using vsftpd, and I can't seem to get the behaviour I want through vsftpd.conf. What if you want /folder to be the change root folder to disallow users from going one folder up, but the starting directory for all sessions to be…
0
votes
1 answer
chroot:failed to run command '/bin/bash':No such file or directory on debian 12 live
I am using the Debian 12 live environment and have created a folder:
mkdir /mnt/boot
When I execute sudo chroot/mnt/boot, the following error is reported:
chroot:failed to run command '/bin/bash':No such file or directory
I have found this…

ABeginner
- 5
- 2
0
votes
0 answers
(13)Permission denied: AH02611: create: apr_shm_create(/log/slotmem-shm-p24af65f1_0.shm) failed
I updated httpd to version 2.4.57. I compiled httpd on my own and when I start httpd within a chroot environment, I am getting this error message in the logs:
[Thu Jun 22 14:33:27.319378 2023] [slotmem_shm:error] [pid 3591] (13)Permission denied:…

MrPython
- 1
- 1
0
votes
0 answers
Multiple users chrooted to single directory when using SFTP
Heyho,
so, while experimenting with setting up my own webserver on a Raspberry Pi, I've come up with something that should be quite simple in my opinion, but seems to be quite hard (or I can't find the right explanation):
On this server, I am…
0
votes
0 answers
PHP-FPM + Apache2 security
I have configured my server (an Ubuntu 22.04 machine) so that it is managed by Apache (v2.4.55) and php7.4-fpm. The current configuration allows every vhosts to be divided into specific php-fpm pools, and each of these pools running with different…

MrL
- 1
- 1
0
votes
1 answer
Define arbitrary chroot on a per-user basis for VSFTP
I want to set up two FTP users for my server (Ubuntu 8.04):
One that logs into /var/www so they can access and administer all the web site files
One that is chroot'd to (say) /var/www/images so that they can only access the site's images
Ideally…

Paolo
- 138
- 3
0
votes
1 answer
Can't chroot users correctly with vsftpd
I used this tutorial to install vsftp.
Everything seems to work fine except for two things:
Even though I set local_root=/home/$USER/ftp the default location
when I use any ftp-client is /home/$USER.
I have read access to the
entire file-system.
I…

MaestroMaus
- 115
- 4