Limit files access inside newly created folder

Discussion in 'Programming' started by webcodez, Mar 2, 2011.

  1. #1
    Hi there,

    Currently I'm working on a script which makes users able to create their own website based on existing scripts ( e.g. phpBB3 script ). For example: when a user creates a new website based on the phpBB3 script, a new folder is made (named to the desired website name) containing the phpBB3 script, installed.The issue is that I do not know how to limit the permissions/access of the files inside of this folder. What I want to do is: when the script creates a new folder for the website, containing the desired script, it should only be able to alter/affect files inside of that folder (or inside another folder of that folder; basicly inside that directory or higher).

    Does anyone know how I can achieve this (dynamicly upon folder/script creation)?

    Thanks in advanced,
    Skyfe.
     
    webcodez, Mar 2, 2011 IP