Last active
September 30, 2015 18:18
-
-
Save jaircuevajunior/a72babae39e20e988644 to your computer and use it in GitHub Desktop.
Jailkit Chroot SSH User Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.binarytides.com/setup-jailed-shell-jailkit-ubuntu/ | |
PHP | |
vi /etc/jailkit/jk_init.ini | |
[php] | |
comment = the php interpreter and libraries | |
executables = /usr/bin/php5 | |
directories = /usr/lib/php5, /usr/share/php, /usr/share/php5, /etc/php5, /usr/share/php-geshi, [B]/usr/share/zoneinfo[/B] | |
includesections = env | |
[env] | |
comment = environment variables | |
executables = /usr/bin/env | |
jk_init -c /etc/jailkit/jk_init.ini -f -k -j opt/jail php | |
Composer | |
jk_cp -v -j /opt/jail /usr/share/zoneinfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment