prevent user del files in ipython-notebook environment
-
14-07-2021 - |
سؤال
I want to build ipython-notebook playground environment for colleagues, but it seems can't prevent one people delete another one's file in ipython-notebook. Like,
!rm <aaa's file>
Could I have some way to prevent this to happen?
EDIT: and it also can rm other files...even at other place...
Should I add a new user for ipython-notebook if I want to open it to others?
المحلول
There's a way to give people read-only access to the notebook, but if you want them to run code, they can do anything that the OS allows them to. So yes, you need to use OS-level security mechanisms, like user accounts or virtual machines.
لا تنتمي إلى StackOverflow