I ran to an uncommon situation a few days back. All my intranet SharePoint site users are their permissions set to "Read" More critically worrisome, all my site collection administrators accounts are in full read permissions as well. Using my favorite search engine, I have put a script together which will allow me to explicitly set owners and secondary owners to all my SharePoint Web site, as shown below:
$owner = Read-Host "Enter site collection owner username: "
$second = Read-Host "Enter site collection secondary owner username: "
$sites = Get-SPSite -Limit all
foreach ($site in $sites)
{
Write-Host Setting $site.url owner to $owner and secondary owner to $second
stsadm -o siteowner -url $site.url -ownerlogin $owner -secondarylogin $second
}
Write-Host "Done"
$site.dispose()
This little script worked fine for all web site except for the more important one. The "failedspsite" throws an error :
"actions on this web site has been blocked - Contact administrator to resolve the problem".
I have no logs whatsoever, to help me figure out where the problem lies, nor any events logged when the errors is thrown. So all administrator accounts cannot not edit user and group permissions in the "failedspsite" web applications. However, when checking administrator rights in Central Administration GUI I can see that the permissions level are "Full Control" . Below is the screenshot of Site actions menu for my site collections administrator. It's in french but you can clearly see that the permissions
My administration center and WFE server are running on the same box while the SQL server is on another server. It's a SharePoint 2010 SP1 environment with only one server in the farm.
Hope to hear back from you guys very soon, as this issue is blocking my production environment as users are not able to upload, edit, work with documents at all. Only view are permitted.