Set Umbraco Folder Permissions with Powershell
Thursday, June 17, 2010 2:47:22 PM (GMT Daylight Time, UTC+01:00)
If you're not configuring Umbraco through a web installer, you've had your installs in place for years and never checked the permissions or whoever set the permissions up was lazy and gave IIS write access to the entire folder, there will come a time when you want to restrict modify access to just those user(s) who should have access.
You can find a (pretty) complete list of the files/folders that the Umbraco install should have access to here but assigning them across 101 different installs is a PITA . Thanks to a helpful PowerShell script to set folder permissions from PowerShell.nu you can easily automate the process.
For those of you not familiar with PowerShell (like me) complete instructions are below. For the rest, here's the command:
Get-ChildItem -path ##PATH TO YOUR INSTALL##
| Where { $_.name -eq "Bin" -or $_.name -eq "Config" -or $_.name -eq "Css" -or $_.name -eq "Data" -or $_.name -eq "Masterpages" -or $_.name -eq "Media" -or $_.name -eq "Scripts" -or $_.name -eq "Umbraco" -or $_.name -eq "Umbraco_client" -or $_.name -eq "UserControls" -or $_.name -eq "Xslt" }
| ForEach {./SetFolderPermission.ps1 -path $_.Fullname -Access "NETWORK SERVICE" -Permission Modify}
Instructions:
- Save the SetFolderPermission.ps1 script to your server
- Open your PowerShell console (I think it's installed by default if not, you can download PowerShell here)
- Copy the above PowerShell command into notepad
- Update "##PATH TO YOUR INSTALL##" to your Umbraco install
- If your IIS install doesn't use NETWORK SERVICE as the default user, update it to your user
- Make sure it's all on a single line
- Copy/Paste/Run in PowerShell
Bonus
If you're uber lazy and just have a web folder of Umbraco installs you can set the path to the folder of Umbraco installs and use:
Get-ChildItem -path ##PATH TO YOUR FOLDER## -recurse
| Where { $_.name -eq "Bin" -or $_.name -eq "Config" -or $_.name -eq "Css" -or $_.name -eq "Data" -or $_.name -eq "Masterpages" -or $_.name -eq "Media" -or $_.name -eq "Scripts" -or $_.name -eq "Umbraco" -or $_.name -eq "Umbraco_client" -or $_.name -eq "UserControls" -or $_.name -eq "Xslt" }
| ForEach {./SetFolderPermission.ps1 -path $_.Fullname -Access "NETWORK SERVICE" -Permission Modify}
I've not tried this mind you and can't recommend it but hey, it's there if you want it ;)
Rackspace partners with The Site Doctor
Saturday, March 08, 2008 10:24:01 AM (GMT Standard Time, UTC+00:00)
There are a lot of changes afoot at The Site Doctor at the moment -not just the new company identity, site and top secret plan but we're partnering with industry leaders to ensure we're able to offer the very best service possible.
Today I'm going to introduce our hosting provider, Rackspace. The Site Doctor has partnered with Rackspace®, Europe’s fastest growing and most successful IT hosting company, to provide our fully managed hosting solutions.
The Site Doctor has chosen Rackspace as our trusted hosting partner as they are completely focused and experienced in managed hosting. Every system and process at Rackspace was built exclusively for delivering a reliable and secure service, with support staff highly trained for supporting complex hosting environments. Rackspace supplies the necessary superstructure - web, application and database servers, network devices, bandwidth and managed services - needed to run any outsourced hosted solution. Solutions are hosted in state-of-the-art secure data centres, watched over by certified staff.
Another reason behind The Site Doctor's decision to partner with Rackspace was Rackspace's award winning and unbeatable level of customer service -nicknamed as "Fanatical Support®". Rackspace employees are available 24/7/365 to meet and exceed your expectations, meaning fast responses to critical issues, unlimited (free) technical phone support, access to their huge online knowledgebase, guaranteed 100% network uptime and many other business-critical support features. By outsourcing to Rackspace, we get the peace of mind that our hosting environment is being looked after by the experts.
Rackspace's commitment to its customers has won them the Unisys/Management Today Customer Service Excellence Award for 2005, in addition to being named Microsoft's Gold Certified Hosting Solutions Partner of the Year and Red Hat's first Advanced Hosting Partner in Europe.
The Site Doctor highly recommends Rackspace because, like us, they hold the highest standards in service excellence and therefore are able to ensure that mission-critical applications will remain up and running in a secure environment.