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
1
vote
3 answers
Help on chroot sftp user
I have 5 sites all under /home/mainuser. I have created user in /home/user1, currently the sftp works and the user is jailed to his folder. However, I want it to have access to 2 sites in /home/mainuser and hide the other 3 sites from user1. So I…
Tony
1
vote
2 answers
CHROOT for shell script testing
I am looking at setting up a shell script in order to properly document and automate the process I am using to setup a few servers we have. In order to test the shell script through its different stages I was thinking a CHROOT would be ideal, since…

Joshua Enfield
- 3,454
- 8
- 42
- 59
1
vote
2 answers
How can I install ubuntu server in a chroot environment?
I am using Ubuntu Karmic desktop. I want to install Ubuntu 8.04 LTS server in a chroot environment. Can anyone provide instructions on how to do this?. A Google search does not bring up anything useful (perhaps I am searching using the wrong…

user35402
- 1,171
- 3
- 10
- 18
1
vote
1 answer
question about chroot
I used chroot to install Debian Lenny on my Ubuntu desktop. I have now decided I will no longer be using Debian and so I want to remove Debian and install Ubuntu server in a chroot instead.
My question is, I can simply remove the…

user35402
- 1,171
- 3
- 10
- 18
1
vote
2 answers
sftp chroot access via SSH
I have this setup in sshd_config:
AllowUsers test1 test2
Match group sftpgroup
ChrootDirectory /var/www
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
Match user test2
ChrootDirectory…

Cudos
- 539
- 2
- 7
- 18
1
vote
3 answers
Is there an equivalent to MySecureShell for Centos?
I have some issue to install MySecureShell on CentOS 5.4 because I want to use Yum to install it (for maintainability).
I get this error :
yum install mysecureshell
Error: Missing Dependency: libcrypto.so.10()(64bit) is needed by package…

benjisail
- 1,331
- 5
- 19
- 32
1
vote
1 answer
Ubuntu Server mod_chroot Apache2 Problem
I am trying to make it so my apache web pages will be in a chroot jail. I have set up my chroot jail as according to https://wiki.ubuntu.com/ModChroot. However when i restart apache i get the following error logged:
[error] No such file or…

Petey B
- 173
- 1
- 10
1
vote
2 answers
WinSCP and chroot problem, "A call to an OS Function Failed"
We've got a chroot environment on CentOS set up for our users to download data from. One of our users is using WinSCP and they're getting this error:
"A call to an OS function failed".
This link on the WinSCP Support forum raises the same issue but…

user44384
- 129
- 7
1
vote
1 answer
How to set chroot for SFTP under Ubuntu 8.04?
Ubuntu 8.04 LTS comes with OpenSSH 4.7, before the ChrootDirectory parameter was introduced. How can I upgrade OpenSSH to 4.9+? Alternatively, without upgrading OpenSSH, how can I set chroot?

netvope
- 2,123
- 5
- 25
- 35
1
vote
0 answers
Availability of CHROOT in Docker containers and clusters
Is the Linux tool chroot generally usable in a Docker container running in clusters and cloud platforms?
(background) I'm developing an application where I may need to use chroot inside a Docker container. In a related question I expressed my…

Matteo T.
- 111
- 2
1
vote
1 answer
Pure FTP Server let's me download files from "Bind Mounted HTML" folder but will thrown 533 Error to STOR command when uploading Index.html
Yesterday I finished configuring a FTP Server using Pure-FTPd.
The method I am using is the "Virtual Users" method.
The commands below are basically what I executed it in order to make it work:
PureFTPd (Debian 10)
Instalar FTP usando o Pure-FTPd…

Raul Chiarella
- 216
- 1
- 4
- 17
1
vote
1 answer
/dev/null , /dev/random and chrooted bind
Hy,
Why a chrooted bind need to mknod dev/null and dev/random ?
Howto say it's necessary but without explain reasons, I administrate chrooted bind servers without theses options, and all seems to work perfectly ...
Thanks for your answers.

profy
- 1,146
- 9
- 20
1
vote
1 answer
How can I set specific directory for different users in proftp?
Currently, when user A logs in proftp, he comes at his home directory /home/A, when user B logs in proftp, he comes at his home directory /home/B. I want to let user A come at /dir1 and let user B come at /dir2, how can I do in proftpd's…

peter
- 93
- 13
1
vote
0 answers
Tilde (~) shortcut in chroot jail
I have set up a chroot jail with bash for an ssh user. The "true" path of the home directory is /home/jails/home/name, and the chroot directory is /home/jails. When the tilde ~ shortcut is used in the bash, however, it tries to take the user to…

Somphyr
- 11
- 1
1
vote
2 answers
Debian unattended (preseed) installation, access to audio card(s)
I'm using the preseeding feature in order to shape a custom Debian 10 x64 system.
Everything is happening well, except that during the late_command step, I'm running a shell script to configure and deploy miscellaneous things and I would like to be…

Bil5
- 153
- 5