Discuz Providing Administrator privileges

Source: Internet
Author: User

Error uploading attachments: The attachment file could not be saved to the server, possibly the Directory property setting problem, please contact the administrator.

Modified Permissions issue still exists

Workaround:

Login Discuz Backstage
Global-Attachment settings-Basic settings-Attachment save location:-"Change the relative path to an absolute path."/attachments to/www/discuz/upload/attachments "

The reason is because the forum has shifted the path to the program path problem


To elevate the user as an administrator:

Discuz+uclient manually elevate normal users to administrator privileges

The key is to know the location of the administrator rights in the database

Assuming that the Discuz database prefix is cdb_ uclient, the prefix is uc_

Execute separately

query Table structure
Describe Uc_members;

Querying for Sunshine user name information
SELECT * from Uc_members where name= "Sunshine";

2xxx79 is the UID field value queried above
INSERT into uc_admins values (2xxx79, "Sunshine", 1,1,1,1,1,1,1,1,1,1,1,1);

This will elevate the Sunshine user to administrator privileges in UC.

If you want to use the UC site initiator permissions, you will need to modify the data/config.inc.php file under Ucclient
Modify
Define (' UC_FOUNDERPW ', ' xxx0dfxxx407de5xxxba5463xxx095e '); This is the code.
Define (' Uc_foundersalt ', ' 0axxx6 '); This is the salt value in the user information

Elevate a user to administrator privileges in Discuz

Adminid--smallint (3)--Management Group ID number (1 for administrator, 2 for total moderator, 3 for moderators, 0 for no, i.e. non-administrative group, -1 table
Special groups and system groups (i.e. 4,5,6,7,8 groups) other than
Update cdb_members Set Adminid = 1 where username = "Sunshine";
This will elevate the user Sunshine permissions to the administrator

SELECT * from cdb_members where username = "Sunshine";//View user Information

Access admincp.php Login to


Discuz Providing Administrator privileges

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.