How can I change (and then reset) permissions for the root folder of my
website?
Here is my scenario...
1) Website is written in classic ASP with SQL database.
2) The owner can add/edit/delete pages via the CMS.
3) Not wanting to give write permissions to the root folder, I have
created a folder /pages/ with write permissions.
4) When a new page is added, a folder is created in /pages/ and a master
Index.asp file is copied to that new folder via javascript FSO.
This generates a URL like this: http://mydomain.com/pages/about_me/
What I would like to do is...
1) Change the permissions on the root folder, but not any child folders or
files in the root,
2) Move the "master" file to the root using javascript FSO renaming it to
the selected name (ie: about_me.asp),
3) Finally, reset the the permissions on the root folder.
Is this at all possible?
If not, any suggestions would be greatly appreciated.
No comments:
Post a Comment