After a website is created under MOSS, by default, the user who creates the website will be the owner of the website or website set. The website or website set owner has the same management permissions as the website set administrator. If we add MOSS to another domain or delete the website owner user after the website is created, the website owner in the MOSS database will point to an error.
The website owner does not have this problem. If there is no error, it does not seem to have much impact. If there is a problem, it may be a strange phenomenon, such as a website administrator prompt that there is no permission management.
You can use an SQL statement to check whether the user with an error is specified, and the operation object is the content database of the website-view the website with the corresponding URL
Select * from Webs where FullUrl =''
Copy the SiteId and Author in the result. The Author is the website owner ID. The following SiteId uses the copied SiteId
SELECT * FROM [UserInfo] where tp_SiteId = '3893dc59-756e-440c-8975-6214a531cae1'
Here we can see all the user information under this website. Let's take a look at the Author number in the first statement to find the record corresponding to the tp_ID in the query result, if there is no or the logon user in the corresponding record is the old account information, the website owner is incorrect.
We need to update the website or website set owner. In SharePoint2003, we can find the address for modifying the website set owner in the Management Center of MOSS2007. However, I cannot find this function in the Management Center of MOSS2007, well, let me know.
I directly use the stsadm command to modify the website or website set owner. The format is as follows: stsadm.exe-o siteowner-url URL [-ownerlogin DOMAIN \ User_Name |-secondownerlogin DOMAIN \ User_Name]
In addition, the command to assign permissions to the user is recorded here: stsadm.exe-o adduser-url-userlogin DOMAIN \ User_Name-useremail someone@example.com-role Site_Group_Name-username "Users Display Name"-siteadmin
Example:
Stsadm-o adduser-url http: // mossServer-userlogin test \ administrator-useremail admin @ test-role full control-username administrator-siteadmin