Fixed a website or website set owner error in MOSS.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.