How does ChrootDirectory and a user’s home directory work together?
I need to create an SFTP only user on CentOS 7. I’ve read how to do it from various sources. The setup needs to only support a single user with SFTP only access to a single folder.
I need to create an SFTP only user on CentOS 7. I’ve read how to do it from various sources. The setup needs to only support a single user with SFTP only access to a single folder.
After reading about Linux namespaces I was under the impression that they are, amongst a lot of other features, an alternative to chroot. For example, in this article:
The goal is to install and run programs in a displaced (relocated) distro (whose / must not coincide with the global /) inside a host Linux system. The programs are not adapted for using a different / .
For a user process, I want to mount a directory in other location but in user space without root privilieges. Something like mount –bind /origin /dest, but with a vfs wrapper. Like a usermode fine-tuned chroot.
This page describes how you can use the debootstrap utility to install a base Debian unstable/sid system on an existing Linux machine. The new install is accessible using chroot.
I am using a cowdancer/debootstrap setup to generate a chroot.
So I’m on a VPS – CentOS Linux installation. I have vsFTPd on the server.
I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a specific directory only on the server, I’ve done the following:
I want an isolated (guest) Linux environment on my computer that I can mess up without worrying about the host. E.g. install a lot of stuff from source without package management, pollute environment environment variables etc., then spawn another guest environment when the old guest gets too cluttered.
I need to be able to provide the /bin and /lib directories inside a chroot jail so that programs can dynamically link properly.