PDA

View Full Version : Admin oops


rustic
07-08-2008, 01:32 PM
I was adjusting my user groups for my admin acct on my forum and removed "Administrators" as the primary user group and made it a secondary group.

Now I cannot log in to AdminCP.

Is there a generic admin account or a way to unlock this? I am the administrator and have physical access to the server, etc.

bobster65
07-08-2008, 01:57 PM
I was adjusting my user groups for my admin acct on my forum and removed "Administrators" as the primary user group and made it a secondary group.

Now I cannot log in to AdminCP.

Is there a generic admin account or a way to unlock this? I am the administrator and have physical access to the server, etc.

edit the config.php file (in the includes folder) .. set yourself as Super Admin (just add your user id) .. then you can login and fix it ;)

rustic
07-08-2008, 02:28 PM
well I am userid 1 for this db, as I created it.

in my config.php the following already exists:



// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1';




when I attempt to log in to the AdminCP, it takes me to the "thank you for logging in" redirect splash then immediately drops me back to a login panel.

I am creating a new user and will attempt to apply that account userid to the snippet above (and other pertinent regions) to create a "new" SuperAdmin account. Will this work?

--------------- Added 1215531194 at 1215531194 ---------------

Follow up:

I created a new user, added it's UserID to the Super Admin slot via config.php, and I still get the same thing.

I log in, it says thank you, then drops me off at the login screen.

Please advise.

Hex_legend
07-08-2008, 02:34 PM
Have you deleted your cookies, cleared cache?

rustic
07-08-2008, 03:48 PM
Have you deleted your cookies, cleared cache?

Yes.

I have done the following:

Created a new account
Adjust /includes/config.php to give this user super admin
after adjusting config.php I restarted the webserver services
cleared all stored data in my browser


When I navigate to mysite.com/forum/admincp and attempt to login, it shows me the "Thank you for logging in" redirect page, and then redirects me back to the login screen.

I'm flustered.

--------------- Added 1215537914 at 1215537914 ---------------

https://vborg.vbsupport.ru/external/2008/07/75.jpg

The cure:

I grabbed the zip file that corresponds with my version (number 3.7.x) from the members section of vbulletin.com. Inside that there is a directory titled do not upload. In THAT is a file called tools.php. I used tools.php to reset admin status for a user.

All is well.

Thanks for your collective input!

Opserty
07-08-2008, 05:34 PM
Upload the tools.php file from the do_not_upload folder of your vBulletin zip archive, to your AdminCP directory, follow the on screen instructions. There is an option to restore the admin account.

(For future reference for anyone that comes along).

Note: The variables in the config.php file will not override the AdminCP. You need access from the AdminCP before you can have the access granted in the config.php file.

bobster65
07-08-2008, 05:46 PM
Upload the tools.php file from the do_not_upload folder of your vBulletin zip archive, to your AdminCP directory, follow the on screen instructions. There is an option to restore the admin account.

(For future reference for anyone that comes along).

Note: The variables in the config.php file will not override the AdminCP. You need access from the AdminCP before you can have the access granted in the config.php file.

ya, my bad.. I forgot the other step (editing the record directly in the DB) .. I've done it more than once without the tools.php file. Its best to do it the tools way, but when you are remote and don't have the tools file, but have access to the DB.. you CAN get in ;)

rustic
07-08-2008, 06:31 PM
the admin group is group "6" in the db...