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

Accidently deleted Admin User

Scheduled Pinned Locked Moved Unsolved
FOG Problems
2
3
237
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 Dec 7, 2023, 4:22 PM

    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 Dec 7, 2023, 5:17 PM Reply Quote 0
    • J
      JimmyMac @JimmyMac
      last edited by Dec 7, 2023, 5:17 PM

      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
      • C
        Cire3
        last edited by Dec 8, 2023, 8:38 PM

        I believe a reinstall would do the same no ?

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

        169

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project