By using libpam-chroot it is possible to chroot subset of users quite easily based on an username when user is logging with SSH.
What is a good way to create this chroot and libpam-chroot setup. One of my goals is that chrooted users are only known in chroot environment (no passwords or whatsoever would be stored outside chroot). In my previous setup I needed to manually update users passwords between
/var/my_chroot/etc/shadow. Is this possible?
Or is there a completely different way to achieve this kind of subsystem without a need of a completely another (virtual)computer (I do not have any spare hardware to offer and I have only 1 network interface)? Or is the virtualization the correct answer after all?