How to create virtual Environment for users on server

Posted by Bhushan Nagaonkar on Stack Overflow See other posts from Stack Overflow or by Bhushan Nagaonkar
Published on 2012-04-05T09:15:12Z Indexed on 2012/04/05 11:28 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about python

Related posts about linux