0

In order to make my question clear I will give a practical scenario. Lets say I have a server where I allow people to upload a script and allot them part of my drive, the script can make requests to the server in order to create files, delete them and add data to existing ones.The script lives at a specific path and all the writing and reading needs to be constrained to only that path. The scripts are accessible to anyone and can make requests at any time. However the only problem is that another script can be uploaded to the server and that script can make a request to write on another scripts section of the drive. How can I tell the files apart and make sure that the script making the request to its path lives there?

  • 2
    I'm not sure there is a security question here. It looks more like an OS or file system feature specific question. – schroeder Sep 26 '15 at 3:35
  • 1
    If you're hand-coding the website, maybe it should be on stack overflow? – Neil Smithline Sep 26 '15 at 3:49
  • I am hand coding it, but this is more of a theoretical question, I'd like to know what I could do and if it is even possible at all. I think I will have to cross post, and hopefully that doesn't get anyone angry. – AlanZ2223 Sep 26 '15 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.