Hacker News new | past | comments | ask | show | jobs | submit login

sudo jail -c path=/ command=/bin/sh

to get a shell in the least isolated jail possible. It's that simple. Read the "Jail Parameters" section in `man jail` to see what you can add to this, e.g.:

sudo jail -c path=/ ip4.addr=192.168.1.123 command=/bin/sh

to isolate the IP address…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: