Page 1 of 1

[Solved] Security settings

PostPosted: Wed May 13, 2009 3:13 pm
Author: .QUACK.Major.Pain
I noticed that you can turn on the Protect Admin Mod setting at top of ACP>Security>Special page.

After setting to Enabled and submitting, it goes back to disabled.

Is this possibly a CHMOD issue? If so what file/folder would I be looking for?


Thanks again.

Re: Security settings

PostPosted: Wed May 13, 2009 6:52 pm
Author: Helter
this happens when you install without setting includes/phpbb_security.php chmod to 666. By default when you install IM141 phpBBSecurity sets a random code in the db and writes it to includes/phpbb_security.php.

check your db in phpbb_config for the 3 phpbb security fields

sec_admin = admins_allowed
sec_mods = mods_allowed
sec_name = block_unwanted

the values for these fields dont matter, but they need to match the valuse in phpbb_security

Code: Select all
    function phpBBSecurity_AdminConfigName()           {           return '[b]admins_allowed[/b]';           }                 function phpBBSecurity_ModConfigName()           {           return '[b]mods_allowed[/b]';           }                 function phpBBSecurity_UseSpecial()           {           return '[b]block_unwanted[/b]';           }



Ive posted them with the default values, but you should choose something else.

Re: Security settings

PostPosted: Wed May 13, 2009 8:05 pm
Author: .QUACK.Major.Pain
I checked phpbb_config, and it only contains 2 fields. config_name and config_value.

Browsing them there is no mention of admin or mod or values.

Re: Security settings

PostPosted: Wed May 13, 2009 8:13 pm
Author: Helter
in phpmyadmin, click on the "Stucture" tab, then scroll down to the phpbb_config table and click the "edit" button/ It will be on the 7th or 8th page

Re: Security settings

PostPosted: Wed May 13, 2009 8:28 pm
Author: .QUACK.Major.Pain
Thanks Helter.

Checked all my sites and they were all the same.

Fixed them all now.

Didn't recall the 666 in the instructions, but might have overlooked it.

Re: [Solved] Security settings

PostPosted: Mon Jun 22, 2009 4:27 am
Author: Metalaxe
Hi, seems that I have the same problem (cannot Enable the Admin 7 moderator accounts), also there are also 2 other fields that cannot chage:

1) You currently have 2 real users set to 'Admin' status in the users table. It appears you have more admins in the users table than allowed!
2) You currently have 2 real users set to 'Moderator' status in the users table. It appears you have more mods in the users table than allowed!

I changed the values in phpbb_config and matched their values with the phpbb_security.php but nothing happens... :wink: