• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Accidently deleted Admin User

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    3
    234
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JimmyMac
      last edited by

      After a couple days of no sleep I accidently deleted the admin user instead of the recently departed staff members name. Is there any easy way to restore it? No I didn’t have a back up.

      Can I simply re-install FOG on my box?

      J 1 Reply Last reply Reply Quote 0
      • J
        JimmyMac @JimmyMac
        last edited by

        I think I found the solution…

        Alternatively, if the fog user does not exist, you may create it with the default password via CLI.

        mysql -D fog
        INSERT INTO users (uName,uPass,uCreateBy,uType) VALUES (‘fog’,‘$2y$11$g0Hu8OaOStuPk7WWYGh6Wu4PLlZDZGOkzMwEEAk.rZMrI9IdDwno.’,‘localAdmin’,‘0’);
        quit

        1 Reply Last reply Reply Quote 0
        • Cire3C
          Cire3
          last edited by

          I believe a reinstall would do the same no ?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          149

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project