SharePoint – Site owner access denied

The theory always stays the same no matter how this has happened, basically we changed the access to someone else, then back to the site owner, this will reset all the permissions for the user.

stsadm provides us with what we need for this, so simply run the following two commands to reset the permissions.

stsadm -o siteowner -url SiteUrl -ownerlogin Domain\AnyUser
stsadm -o siteowner -url SiteUrl -ownerlogin Domain\SiteOwner

Easy.