"Lakshmipathi.G" <lakshmipath...@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. -- http://mail.python.org/mailman/listinfo/python-list