Assign Admin to Be Superadmin 05-20-2023

Discussion in 'ISPConfig 3 Priority Support' started by tyzenker, May 20, 2023.

  1. tyzenker

    tyzenker Member HowtoForge Supporter

    Maybe you've already answered this, but i couldn't find anything in the Forums.

    For some reason, none of my Admin accounts in ISPConfig seem to be assigned as a Superadmin anymore. I can access the "security_settings.ini" file and change the individual settings from "superadmin" to "yes", but i prefer not to do that.

    It seems my current Superadmin account has disappeared.

    Is there a way to change one of my "admin" accounts into a "superadmin" account? How would I do that?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Normal admin accounts are not superadmin and you can not assign this privilege to them. There is only one superadmin account and that's the first (original) admin user with userid 1. All other admin accounts you create later are not superadmin.
     
  3. tyzenker

    tyzenker Member HowtoForge Supporter

    My Superadmin account has disappeared.

    How can I find out which Admin User is the 1st one?

    I have three admin accounts, but none of them work unless I change the "security_settings.ini" file. All of them show userid 0.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The user list under system > cp users has a column with the userid, the superadmin is the one with ID 0.
     
    tyzenker likes this.
  5. tyzenker

    tyzenker Member HowtoForge Supporter

    Yes, all the admins show userid of 0. There are 3 of them.
    None of them work unless I change the security "ini" file.
    Here is the screenshot: https://ibb.co/xJMhL2Z
    You can see that all three admin have a userid of "0".
    How do I know which one is the superadmin?
     
    Last edited: May 20, 2023
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    There should be only one panel user with ID zero. Something has happened to the panel users database to, maybe you have poked at it too harshly?
    Can you restore the database to backup from before this situation appeared?
     
  7. tyzenker

    tyzenker Member HowtoForge Supporter

    Um... no.
    I went back over 1 year of back-ups and all the admin accounts still have an ID of 0.
    It must have happened when ISPConfig was originally installed.
    Is there a way that I can set one of the accounts to be the superadmin?
    If it's a private thing, such as database changes or something else, you can send me a "private message".
    How would I set up one of the accounts to be the superadmin?
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not know, that exceeds my knowledge about ISPConfig.
    My guess is you need an ISPConfig developer to show how this situation is to be repaired. If you are in a hurry, try ISPConfig Business Support at https://www.ispconfig.org/support/ .
     
    tyzenker likes this.
  9. tyzenker

    tyzenker Member HowtoForge Supporter

    Hello till,
    Do you know how I could set one of the admin accounts to be the superadmin?
    I would be so thankful for your guidance.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the database table sys_user with phpmyadmin in dbispconfig database. This table has a column named 'userid'. The user with userid = 1 and type = admin in that table is the superuser.
     

Share This Page