Skip to content

Instantly share code, notes, and snippets.

View sinux-l5d's full-sized avatar
🦀
Learning rust

Simon Leonard sinux-l5d

🦀
Learning rust
  • Chambéry, France
  • 16:44 (UTC +02:00)
  • LinkedIn in/simon-l5d
View GitHub Profile
@sinux-l5d
sinux-l5d / create_chrootjail.sh
Last active September 22, 2020 10:09 — forked from schnell18/create_chrootjail.sh
Script to automate the creation of chroot to run apache+php+mysql
#!/bin/bash
# script to automate the creation of chroot jail
# w/ minimal executables to run apache+php+mysql
CHROOT=/var/jail
DEB_CACHE=/tmp/jail_cache
if [ "$(whoami)" != "root" ]; then
echo "Script must be run as user: root"
exit 1