How to create virtual Environment for users on server
- by Bhushan Nagaonkar
I have a web application where users can register them self and then save Java and C++ programs in their account.
Programs are saved in a tmp directory like,
/tmp
-user1
--program1
--program2
-user2
--program1
--program2
So all the users folders are in same "tmp" directory.
I want to know how can I proved security by not allowing a user to access files of other users. A user will be executing a java or c++ program in his folder which can be used to read files on the server. How to prevent this?
I am new to this thing I don't know how to go about this.
The server is Linux server and project is in python using Django.
Thank in advance