Error Reading Web Site Information – WebSitePanel
-
28. února 2012 11:12
Hi All,
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
Thanks
Všechny reakce
-
5. března 2012 7:40Moderátor
Hi,
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
http://technet.microsoft.com/en-us/library/cc732880.aspxSet Folder Permissions using a PowerShell script
http://www.powershell.nu/2009/02/13/set-folder-permissions-using-a-powershell-script/Thanks.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework
- Označen jako odpověď Lloyd ZhangMicrosoft Contingent Staff, Moderator 8. března 2012 3:44