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
1
vote
4 answers

Custom initrd init script: how to create /dev/initctl

I have a virtual machine (VMM is Xen 3.3) equipped with two IDE HDD's (/dev/hda and /dev/hdb). The root file system is in /dev/hda1, where Scientific Linux 5.4 is installed. /dev/hdb contains an empty ext2 file system. I want to protect the root…
Posco Grubb
  • 123
  • 1
  • 2
  • 6
1
vote
0 answers

Cache memory with Chroots

I have a server with many chroots, each one used by a different group of users. Most of them use Jupyter Notebooks that store variables in memory for as long the notebooks remain open. The output of free -h is the…
marlanbar
  • 11
  • 2
1
vote
2 answers

Can't start sessions in chrooted nginx php-fpm environment in FreeBSD

I have a FreeBSD 11 machine running latest Nginx and PHP-FPM in chrooted mode. Everything worked fine, until I added start_session(); to index.php. This is when I received the following error: Fatal error: Uncaught Exception: Cannot open source…
Alex G
  • 207
  • 1
  • 2
  • 14
1
vote
1 answer

Vsftpd not displaying files and folder

I run vsftpd: version 3.0.2 on Debian 8. I have a folder /home/vsftpd/$USER which is mounted on an NFS. $USER is replaced by the user name connected on the FTP. Those users are authenticated against MySQL using pam-mysql. All the users can connect…
Kaymaz
  • 241
  • 3
  • 11
1
vote
2 answers

Is chrooting possible with apache 2.4 on RHEL 7? Does it make sense to chroot ?

I did my research and found that people are unsure if chroot is helpful in security. I have these questions left unanswered. Is chrooting worthwhile if yes can it be done for httpd 2.4 on rhel 7?Please share any resource or reference. If not what…
Dextro67
  • 343
  • 2
  • 10
1
vote
1 answer

Installing Redhat repositories in a chroot jail with no repositories installed

I have installed software that runs in a chroot jail in Redhat 7.3. Unfortunately, there are no repositories installed in this jail, so I can not download the packages I need through yum. I would like to add the Redhat repositories to the jail but I…
pv93
  • 11
  • 1
  • 2
1
vote
1 answer

FTP over SSH chroot permissions

I'm trying to set up an upload directory on my server, and having the hardest time doing so. Uploads to the directory need to be accessible to all other users on the system, but the user account that is to be used for uploading should have no access…
1
vote
1 answer

Protecting Directories in a chroot'ed root fs

So we're trying to retrofit an older ftp drop off server that also doubles as a rsync endpoint. In each user chroot there's a directory structure that looks like this: /. ├─── usr/ ├─── lib/ └─── ...(customer data) Ideally we'd add a /data…
1
vote
1 answer

Chroot doesn't work with php-fpm

i should use chroot for my ftp directory at my site: My php-fpm.conf: [mysite.com] listen = /var/run/php7-fpm-chroot-filemanager.sock chroot = /var/www/mysite.com/fileman chdir = / user = filemanuser group = filemangroup pm = dynamic pm.max_children…
Valeriu
  • 57
  • 2
  • 9
1
vote
1 answer

chroot from live cd gives : /bin/bash: error while loading shared libraries: __vdso__time: invalid mode for dlopen(): Invalid argument

Tried to fix boot problem kernel panic not syncing attemped to kill init exitcode=0x00000100 And trying to chroot from live cd and im getting this error: /bin/bash: error while loading shared libraries: __vdso__time: invalid mode for dlopen():…
mwweb
  • 113
  • 1
  • 4
1
vote
0 answers

Chroot local VSFTPD users into their own respective directories

So I have been really struggling the past few days trying to get an FTPES chrooted instance of vsftpd set up on Red Hat 7.3. The objective is to have external users login only to their respective directory to only download files. There will be…
Mr.J
  • 123
  • 1
  • 1
  • 10
1
vote
1 answer

Isolating Apache virtualhosts using linux container

I have a web server host (Apache on Linux) that runs many virtual hosts which offer CGIs and FastCGIs using 'chroot' to seperate the processes from each other. For serveral reasons I am thinking of replacing every chroot-environment by a Linux…
1
vote
1 answer

How to create chroot'ed SFTP access on an Archlinux Server?

I've followed this instructions on the ArchWiki and GeekStuff to setup an user which can only access the server via SFTP (SSH) but without Shell (/bin/false) in a chrooted environment of his home dir. Nothing much more special, but it simply does…
q9f
  • 640
  • 3
  • 10
  • 21
1
vote
1 answer

How to prevent sftp users from viewing some directories (inside their chroot directory)

The sftp users of my server are chrooted together in a specific directory. They all belong to the group sftponly. The rights are ok, including a special right to prevent users from overwriting others' files. Now inside the chroot directory, I would…
zezollo
  • 430
  • 1
  • 4
  • 10
1
vote
1 answer

How to identify that BIND is running under chroot

I am trying to run BIND under chroot on Ubuntu and CentOS. Installing it on CentOS is pretty straight forward with just installing the packages - bind and bind-chroot, while Ubuntu is a little more involved. I've been following the below links to…
bhowmik
  • 23
  • 3