I want to make a web service that run other people code locally... Naturally, I want to limit their code access to certain \"sandbox\" directory, and that they wont be able
Check out ulimit and friends for ways of limiting the underprivileged user's ability to DOS the machine.
ulimit