Skip to content

Instantly share code, notes, and snippets.

@jaircuevajunior
Last active September 30, 2015 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaircuevajunior/a72babae39e20e988644 to your computer and use it in GitHub Desktop.
Save jaircuevajunior/a72babae39e20e988644 to your computer and use it in GitHub Desktop.
Jailkit Chroot SSH User Ubuntu
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