After restoring your Sharepoint Collection Site you get access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
You notice that owners, Administrator, an members don’t have write access and when trying to add a user, or any other write command to the site you get:
stsadm -o adduser -url http://wssServer -userlogin matOS\e1m -useremail firstname.lastname@example.org -role "Full Control" -siteadmin -username "Eddie"
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I personally started getting this error when the site was in a locked state, drove me crazy since I thought it was related with permissions or inheritance. Plus my restored at the moment came from a production Domain, and I was restoring in a Testing environment with a testing Domain with different SID
Another reason is because your site it’s over the Quota limit, or because the site was locked when you took the backup of the site.
Not even the Owners, Members, or even Application Administrator will have write access to the site.
This command will remove the lock of you site collection.
stsadm -o setsitelock -url http://wssServer -lock none
Using the Central Administration you can click under Application Management
Click on "Site Collection Quotas and Locks", select your site collection and set it to “Not locked”.
More info at http://technet.microsoft.com/en-us/library/cc287893.aspx