Tag Info

New answers tagged


Just check this link it's working perfect for me This link describes how to create a chroot user to put them in jail Importantly describes how to login as user using su command http://wp.me/p6fueV-l


Here are steps to setup a user and allow the user access only via FTP (i.e. no SSH) and also limit access to a specific (user home) directory on proftpd: Add new user: adduser newusername Set password: passwd newusername Modify user home directory from default to a new folder: usermod -d /target/directory username Edit shells file: vi /etc/shells and add ...


You could pivot_root instead of switch_root (which deletes everything!). If your init system won't complain about not being pid 1, you might be done there. The alternative solution is to make your init system be nice enough to pivot_root itself into a ... what do you call it? shutdownramfs? That has nothing to do with initramfs but is the same principle ...


Making extra directory trees available in a chroot is a typical use case for bind mounts. In your case, it probably makes sense to have the same home directories in the main system and in the development environment. If you have root access and you're on Linux, you can use a Linux bind mount: mount --bind /home /path/to/development/environment/home chroot ...


I don't know what bindfs means, I just know the mount -o bind (option) sudo mount -o bind /some/path/in/the/rootfs local/path


I used Rahul Patil's suggestion above: chroot_local_user=YES local_root=/home/$USER/www-data user_sub_token=$USER But I couldn't understand why I was only able to log in with one user. Then I found that we couldn't chroot to a root directory (for this case, /home/$USER/www-data) that have a write access. So I remove the write access with: # chmod a-w ...

Top 50 recent answers are included