Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-08-2008, 01:32 PM
rustic rustic is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 07-08-2008, 01:57 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rustic View Post
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
Reply With Quote
  #3  
Old 07-08-2008, 02:28 PM
rustic rustic is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-08-2008, 02:34 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you deleted your cookies, cleared cache?
Reply With Quote
  #5  
Old 07-08-2008, 03:48 PM
rustic rustic is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hex_legend View Post
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] ---------------



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!
Reply With Quote
  #6  
Old 07-08-2008, 05:34 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-08-2008, 05:46 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
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
Reply With Quote
  #8  
Old 07-08-2008, 06:31 PM
rustic rustic is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the admin group is group "6" in the db...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 AM.


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.03769 seconds
  • Memory Usage 2,217KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete