Founder Admin

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
hmueller
Registered User
Posts: 16
Joined: Thu Feb 27, 2003 6:46 pm

Founder Admin

Post by hmueller »

Hello,

how does the founder-admin function work?
I have seen that their is a "founder" field in users-table.

What happens when an admin (who has db-access) changes this value?
--> Can he change the founder-admin to an "normal" admin simply by changing this in DB?
Best regards,

Hans

liquid_eagle
Registered User
Posts: 39
Joined: Tue Jun 03, 2003 5:24 pm
Location: England-ish
Contact:

Re: Founder Admin

Post by liquid_eagle »

i've seen this too, and i believe that the founder won't be able to have their admin status removed my other admins... well, that's what i think.

And yes, anyone with access to the database, and correct permissions could change this value.
I saw desserts; I'd no lemons; alas, no melon. Distressed was I.

TheMole
Registered User
Posts: 119
Joined: Wed Sep 19, 2001 11:31 pm
Location: BuhSnarf
Contact:

Re: Founder Admin

Post by TheMole »

Anyone with database access can change *anything* ;)
"It's a fiction like all history, it's been distorted until it makes sense" - Andy Yorke

hmueller
Registered User
Posts: 16
Joined: Thu Feb 27, 2003 6:46 pm

Re: Founder Admin

Post by hmueller »

Hello,

I think that this is not so good. :(
The existing founder-admin-Mods work different, see here:

Code: Select all

// Keep Main Admin An Admin 
  // 
  $sql = "UPDATE " . USERS_TABLE . " 
     SET user_level = 1 
  WHERE user_id = 2"; 
  if (!$db->sql_query($sql)) 
  { 
        message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.'); 
  }

:arrow: Even if somebody changes the admin-status in the users-table, it will be "re-changed" by this code.
What is easier? Changing the founder-admin-status in user-table or searching for this code and removing that?

Existing founder-admin-Mods are Hacks No. 355, 742 and 939 at phpbbhacks.com
Best regards,

Hans

User avatar
psoTFX
Registered User
Posts: 1984
Joined: Tue Jul 03, 2001 8:50 pm
Contact:

Re: Founder Admin

Post by psoTFX »

argh! We DO NOT add Mods to phpBB.

I see no point in what that Mod does ... if an admin gives somoene else, someone unreliable access to their DB they deserve all they get. Running a board requires a modicum of common sense. That includes giving admin and worse, db access rights only to those people you trust implicitly.

User avatar
beeurd
Registered User
Posts: 39
Joined: Wed Mar 20, 2002 12:23 am
Location: A Galaxy Far, Far Away...
Contact:

Re: Founder Admin

Post by beeurd »

Hmm, I wouldn't give DB access to anyone.
Image

TheMole
Registered User
Posts: 119
Joined: Wed Sep 19, 2001 11:31 pm
Location: BuhSnarf
Contact:

Re: Founder Admin

Post by TheMole »

I have two other admin's for day to day running, but only I have access to the FTP account and database account. :)
"It's a fiction like all history, it's been distorted until it makes sense" - Andy Yorke

hmueller
Registered User
Posts: 16
Joined: Thu Feb 27, 2003 6:46 pm

Re: Founder Admin

Post by hmueller »

Hello,

of course it is right that nobody else should have database-access. But this is not always possible.
Example1: when the webmaster of the server is also admin...
Example2: many large boards have more admins ("backup-admin"): e.g. the admin gets ill and is in hospital for weeks...

:arrow: I think that the founder-admin as I descriped in the code-extract above is better then the database-related way.
Best regards,

Hans

User avatar
psoTFX
Registered User
Posts: 1984
Joined: Tue Jul 03, 2001 8:50 pm
Contact:

Re: Founder Admin

Post by psoTFX »

And you're missing the point completely ... you only give DB access to those you trust. If you do that then you will have no problems. If you give access to some little cretin who thinks it's fun to remove founder status then what makes you think they will stop there?

Roberdin
Registered User
Posts: 1546
Joined: Wed Apr 09, 2003 8:44 pm
Location: London, United Kingdom

Re: Founder Admin

Post by Roberdin »

psoTFX wrote:
And you're missing the point completely ... you only give DB access to those you trust. If you do that then you will have no problems.

There is a fatal flaw in that logic: You assume that your trust is well placed - people who worm their way into others' trust are certainly not unheard of. Therefore, there are some very simple rules that you can use to ensure you are completely safe:

1. NEVER EVER give a user that u don't know in real life access to your DB. (Unless, of course, it's part of a webdeisgn contract, or similar.)

2. If you have FTP setup, always ensure that you are the owner of the config.php file, and all other users (who are obv on different accounts to you) don't have any access to it. Public is Read only, Group is none, Owner is all

3. Keep your password safe! :D

Quite simple. Then you always have a 'back-door', so to speak.
Rob

Post Reply