I am designing a online programming website similar to https://repl.it. Users can execute shell and python scripts on the browsers.
If users execute malicious commands including but not limited to "reboot" etc, then our system are damaged.
I understand the easiest way is to leverage Linux user control system. But I do not think this is the most secure way. What are more secure options for building such sites?
Suppose I have 10,000 users and they will perform computing-intensive tasks. I am using AWS.