PDA

View Full Version : My administrator is lost.. Please help me


dallouleh_s
12-24-2010, 06:57 PM
Hi

while i was editing groups i had assigned the administrator to another group and saved it by mistake.. so now i don't have administrator and can't enter my cpanel... how can i assign a new administrator? is there a specific page i can edit?

thank you.

CroNiX
12-24-2010, 07:03 PM
If you can get to the database...

in table `user`
change `usergroupid` to 6

for that user

dallouleh_s
12-24-2010, 07:33 PM
Thank you... You have solved my problem!

CroNiX
12-24-2010, 07:50 PM
sure, to avoid this problem (but makes it a pain for others) you can set that user as an undeletable user in the /includes/config.php file.

Find the line (around line 131)

$config['SpecialUsers']['undeletableusers'] = 'xxx'; //where xxx is the userid

However, if you ever want to change anything in that users profile, you have to manually undo this in the config, make the change in the admincp and save it, then change it back in the config back to undeletable.