28. února 2012 11:12
I'm getting quite a few customers deleting their wwwroot,data and logs folder within their domain folder.
Then they cannot regenerate their web.config files and website goes down. They then call into support for assistance each time. I'd like to stop this.
Any way to adjust the permissions of these folders to readonly but their files to whatever is required for customer, read,write,etc.
Any advice would be appreciated
5. března 2012 7:40Moderátor
Since WSP Server application pool idendity is required to be one of the server administrators, it has the permission to delete these folders by default. As I know, there's no option in WSP that can change this behavior. Actually, before deleting the folders, it will pop up a dialog box to ask for confirmation. So in my opinion, it is expected when user delete the folders with their comfirmation. If you do want to restrict the users from deleting these folders, you will need to write custom scripts to set special permissions for these folders. Here're some references which could help:
File and Folder Permissions
Set Folder Permissions using a PowerShell script
- Označen jako odpověď Lloyd ZhangMicrosoft Contingent Staff, Moderator 8. března 2012 3:44