I create a chroot environment, and I get the following structure in /home/jail/ (it’s ChrootDirectory, it’s also a hamster):
bin dev lib64 etc и др. системные директории www - директория с сайтами chroot-пользователя those. it turns out the trash I would like to bring the structure /home/jail/ (aka ChrootDirectory, it’s a hamster) to the following form:
.bin |__ bin |__ dev |__ lib64 |__ etc |__ и др. системные директории www - директория с сайтами chroot-пользователя Is it possible to achieve this somehow - maybe by changing the PATH, maybe by raising one chroot one level higher, maybe some other way?
.binchroot, and in the directory.bin/wwwconnect the external directorywwwthrough somemount --bind? - andreymalwwwshould be on the same level with.bin, and already inside.binshould be all system directories. Those. when chroot-user enters his environment through SSH and SFTP, he sees.binandwww- Alexander