Prevent Admin from deletion?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob_R
    Senior Member
    • Jun 2009
    • 522
    • 3.8.x

    Prevent Admin from deletion?

    I read here somewhere and I can't find it any longer where someone mentioned that one of the things that you should do to protect your site is to prevent the Admin account from being deleted.

    Can someone explain that process to me and/or provide a link to it and I'll read up on it myself?

    Thanks.

  • ENF
    Senior Member
    • Apr 2002
    • 2677
    • 3.8.11

    #2
    Originally posted by Bob_R
    I read here somewhere and I can't find it any longer where someone mentioned that one of the things that you should do to protect your site is to prevent the Admin account from being deleted.

    Can someone explain that process to me and/or provide a link to it and I'll read up on it myself?

    Thanks.
    Edit your ../includes/config.php file.

    Code:
        //    ****** UNDELETABLE / UNALTERABLE USERS ******
        //    The users specified here will not be deletable or alterable from the control panel by any users.
        //    To specify more than one user, separate userids with commas.
    $config['SpecialUsers']['undeletableusers'] = 'X';
    X = the user numbers you want to protect.

    Add the user number to the section for unalterable users. This means nobody can change or delete the accounts listed in that section of the config.php.
    To be updated...

    Comment

    • Bob_R
      Senior Member
      • Jun 2009
      • 522
      • 3.8.x

      #3
      Originally posted by ENF
      Edit your ../includes/config.php file.

      Code:
          //    ****** UNDELETABLE / UNALTERABLE USERS ******
          //    The users specified here will not be deletable or alterable from the control panel by any users.
          //    To specify more than one user, separate userids with commas.
      $config['SpecialUsers']['undeletableusers'] = 'X';
      X = the user numbers you want to protect.

      Add the user number to the section for unalterable users. This means nobody can change or delete the accounts listed in that section of the config.php.
      Thanks.

      It didn't work when I tried to add another user but the one user that is in there is good enough for now I guess.

      I did this for example, I seperated with comma

      was = '99';

      made it = '99','95'; and it didn't like it. I also tried with a space.

      Comment

      • dmark101
        New Member
        • Dec 2002
        • 27
        • 5.6.X

        #4
        Originally posted by Bob_R
        Thanks.

        It didn't work when I tried to add another user but the one user that is in there is good enough for now I guess.

        I did this for example, I seperated with comma

        was = '99';

        made it = '99','95'; and it didn't like it. I also tried with a space.
        when you enter multiple users, use this format:

        Code:
        $config['SpecialUsers']['undeletableusers'] = '1,2,3';
        separate them with commas, but no spaces and only use the single quote at the beginning and end.
        owner/admin - forums.probetalk.com - vB 3.8.4 PL1 - just upgraded to 3.8.7 [20 mar 2011]
        admin - lamustang.com/forums - vB 3.8.5

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎