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

Reset Fog Password

Scheduled Pinned Locked Moved
General
6
15
3.4k
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.
  • ?
    A Former User
    last edited by A Former User Aug 28, 2019, 6:15 AM May 6, 2018, 9:03 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by May 6, 2018, 9:05 PM

      And yes, I have full access to the server.

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator
        last edited by May 6, 2018, 9:46 PM

        Just to be clear, you want to decode the password of the FOG web ui user fog or do you want to reset it to something you know so you can regain control of your fog server?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        ? 1 Reply Last reply May 6, 2018, 11:00 PM Reply Quote 0
        • T
          Tom Elliott
          last edited by Tom Elliott May 6, 2018, 3:57 PM May 6, 2018, 9:56 PM

          It is md5 hashed so no decoding it. I don’t know who did it but they didn’t reset the password over pxe. Either they manually did it through MySQL or the web ui.

          I would highly encourage you to update to a more recent build of fog for many new features and bug fixes.

          At any rate to reset your fog password access MySQL. Then run

          UPDATE fog.users SET uPass = MD5(‘password’) WHERE uName = ‘fog’;
          

          Of course change the password to whatever you want the password to be set to.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          ? 1 Reply Last reply May 6, 2018, 10:52 PM Reply Quote 0
          • G
            george1421 Moderator
            last edited by george1421 May 6, 2018, 4:05 PM May 6, 2018, 9:58 PM

            If you simply want to reset the fog ui user fog back to the default you could execute these steps.

            1. Log into the FOG server’s linux console and use sudo to switch to root.
              sudo su -
            2. Confirm you are root
              whoami
            3. Log into mysql client
              mysql -u root
            4. Switch to the fog database
              use fog;
            5. Update the fog ui password. (SQL code borrowed from Tom’s post)
              UPDATE fog.users SET uPass = MD5(‘password’) WHERE uName = ‘fog’;
            6. Confirm that its set
              select uPass from users where uName = 'fog';
            7. Attempt to log into the web ui with use fog and the default password.
            8. Change the password so something secure.

            Hint: The apache access log would give you the IP address of the system that was used to log into the fog ui when you suspected the password was changed. Find the owner of that IP address and talk to them using a big baseball bat.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            T 1 Reply Last reply May 6, 2018, 10:02 PM Reply Quote 1
            • T
              Tom Elliott @george1421
              last edited by May 6, 2018, 10:02 PM

              @george1421 for 1.2.0 blowfish encryption wasn’t used, at least I don’t think it was it’s been a while. The md5 method will work for all versions for now though as when you login if it finds the password was md5 it updates it to blowfish style encryption.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              G 1 Reply Last reply May 6, 2018, 10:03 PM Reply Quote 1
              • G
                george1421 Moderator @Tom Elliott
                last edited by george1421 May 6, 2018, 4:06 PM May 6, 2018, 10:03 PM

                @tom-elliott Yeah, your way is a bit easier. I just tried to reverse engineer what I had on hand. I didn’t consider how old 1.2.0 was. Well done!.

                Full Disclosure: I updated my post with your SQL code which is more appropriate.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @Tom Elliott
                  last edited by May 6, 2018, 10:52 PM

                  @tom-elliott
                  Sorry, I didn’t make it clear. It was through Web UI using an Office Computer that is connected to the server over PXE.
                  Yes, I have this option in mind (updating fog).

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @george1421
                    last edited by A Former User May 6, 2018, 5:13 PM May 6, 2018, 11:00 PM

                    This post is deleted!
                    T 1 Reply Last reply May 6, 2018, 11:27 PM Reply Quote 0
                    • T
                      Tom Elliott @A Former User
                      last edited by May 6, 2018, 11:27 PM

                      @richardname hashes by their very nature are unable to be decoded. The best you could do is a dictionary attack that would try any/all combinations until a matching hash is found.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      ? 1 Reply Last reply May 7, 2018, 9:17 AM Reply Quote 0
                      • ?
                        A Former User @Tom Elliott
                        last edited by A Former User May 7, 2018, 3:24 AM May 7, 2018, 9:17 AM

                        @tom-elliott
                        Its what I did 🙂
                        Hash found! Guilty Found!

                        X 1 Reply Last reply May 7, 2018, 9:17 PM Reply Quote 0
                        • X
                          x23piracy @A Former User
                          last edited by May 7, 2018, 9:17 PM

                          @richardname said in My fog server hacked! Help!!:

                          Guilty Found!

                          Let me guess, the charlady? 🙂

                          ║▌║█║▌│║▌║▌█

                          ? 1 Reply Last reply May 7, 2018, 9:54 PM Reply Quote 0
                          • ?
                            A Former User @x23piracy
                            last edited by May 7, 2018, 9:54 PM

                            This post is deleted!
                            Q 1 Reply Last reply May 8, 2018, 11:22 AM Reply Quote 0
                            • Q
                              Quazz Moderator @A Former User
                              last edited by May 8, 2018, 11:22 AM

                              @richardname Impressive that you found out who it was by the password.

                              1 Reply Last reply Reply Quote 0
                              • W
                                Wayne Workman
                                last edited by May 9, 2018, 2:49 PM

                                For future readers: https://wiki.fogproject.org/wiki/index.php?title=Password_Central

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

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

                                180

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project