vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Admin oops (https://vborg.vbsupport.ru/showthread.php?t=184713)

rustic 07-08-2008 01:32 PM

Admin oops
 
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

Quote:

Originally Posted by rustic (Post 1570073)
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:

Code:


        //        ****** 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 [DATE]1215531194[/DATE] at [TIME]1215531194[/TIME] ---------------

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

Quote:

Originally Posted by Hex_legend (Post 1570106)
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 [DATE]1215537914[/DATE] at [TIME]1215537914[/TIME] ---------------

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

Quote:

Originally Posted by Opserty (Post 1570248)
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...


All times are GMT. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01025 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete