• 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

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        And yes, I have full access to the server.

        1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by

          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 Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by Tom Elliott

            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 Reply Quote 0
            • george1421G
              george1421 Moderator
              last edited by george1421

              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!

              Tom ElliottT 1 Reply Last reply Reply Quote 1
              • Tom ElliottT
                Tom Elliott @george1421
                last edited by

                @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

                george1421G 1 Reply Last reply Reply Quote 1
                • george1421G
                  george1421 Moderator @Tom Elliott
                  last edited by george1421

                  @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

                    @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

                      This post is deleted!
                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @A Former User
                        last edited by

                        @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 Reply Quote 0
                        • ?
                          A Former User @Tom Elliott
                          last edited by A Former User

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

                          x23piracyX 1 Reply Last reply Reply Quote 0
                          • x23piracyX
                            x23piracy @A Former User
                            last edited by

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

                            Guilty Found!

                            Let me guess, the charlady? 🙂

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

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @x23piracy
                              last edited by

                              This post is deleted!
                              Q 1 Reply Last reply Reply Quote 0
                              • Q
                                Quazz Moderator @A Former User
                                last edited by

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

                                1 Reply Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman
                                  last edited by

                                  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
                                  • First post
                                    Last post

                                  181

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project