Reg secure python environment with web terminal emulator

dieter dieter at handshake.de
Wed Aug 7 02:05:39 EDT 2013


"Lakshmipathi.G" <lakshmipathi.g at gmail.com> writes:

> We have a server running a web-based terminal emulator (based on shellinabox
> for screen-casting  check www.webminal.org) that allows users to learn
> simple bash commands. This Linux environment secured by things like quota,
> selinux,ulimit  etc
>
> Now some users are requesting python access. How to ensure python is executed
> in a restricted environment. I came across
> http://docs.python.org/2/library/restricted.html
> but it seems like disabled in 2.3. Any thoughts on how we can safely
> provide python access
> to users.

When you are satisfied with the protection you have achieved
for bash commands, those same protection might be sufficient
for Python as well. I assume that you used operating system
facilities to restrict what the (system) user can do on the
operating system level: the same restriction would apply to the
(same) user executing Python code.




More information about the Python-list mailing list