Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

prevent user del files in ipython-notebook environment

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?

like image 903
HaveF Avatar asked Mar 07 '26 16:03

HaveF


1 Answers

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.

like image 113
Thomas K Avatar answered Mar 10 '26 14:03

Thomas K