jailkit: http://olivier.sessink.nl/jailkit/ Create chroot directorymkdir /chroot/foo chown root:root /chroot/foo Add setsjk_init -j /chroot/foo <sets> Possible sets: see /etc/jailkit/jk_init.ini Possibly useful: jk_lsh, basicshell, if not even basicshell: uidbasics, netbasics, logbasics Move usersjk_jailuser -j /chroot/foo <users> This will update /etc/passwd and set the users' shells to jk_chrootsh Possible options: -m move homedir instead of copying Copy more stuffjk_cp -j /chroot/foo <files/directories> This will copy any executables with the dependencies. Possible options: -k hardlink instead of copying, -f force overwrite of stuff, -o retain ownership & permissions Testingdo not: su - <jaileduser> do: su <jaileduser> |
Random Notes >