This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-automatically-chroot-jail-selected-ssh-user-logins
Is there a way to have it so each user is jailed into their own environment? example: Each user needs to be jailed into /data/chroot/jail/“User” currently it’s only allowing me to jail all users into /data/chroot/jail/ which still allows each user to see one another’s data etc.
Finally a real good tutorial about chroot. I’ve tried 3 others before without success. Thanks for sharing good knowledge !
Cufflink -> Kundun
Agreed. This tutorial helped me configure the environment first try. Thanks!
Any idea(s) why I get “bash: ls: command not found” errors for all my commands even when all of the necessary libraries exist?
How could i use nano editor in chroot environment created by your how to?
There’s a typo:
At this point all is ready and we can chroot
# chroot /vat/chroot
I think you mean the above line to say:
# chroot /var/chroot
Lubos Rendek -> Ryan Salomon
This will be updated shortly… thanks…