FOG Project

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

    Unsolved I need to restore my fog server, but I don't know the web gui password

    FOG Problems
    password
    2
    11
    1688
    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.
    • K
      kyletmanel last edited by

      I need to recover a fog server that is being used to build several machines. The past operator however has left without leaving passwords to the web ui. I have recovered into the CLI, and have attempted to run ‘mysql -p fog’ but I receive ‘ERROR 1045’ Access denied for user ‘root’@‘localhost’ (using password: YES)
      as well as ‘mysql -p fog’ with similar results (except a NO).

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

        @kyletmanel The error you posted says you’re not using a password. You should be providing a password if one is set. The command to access MySQL when a password is set is mysql -u root -p, so any instructions you see that say to enter into mysql via the command mysql, you would instead use mysql -u root -p

        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 1
        • K
          kyletmanel @Wayne Workman last edited by

          @Wayne-Workman
          Not as yet. I can’t access the mysql utility as it provides error 1045 when I attempt to access the application.

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

            @kyletmanel So… back in business now?

            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/

            K 1 Reply Last reply Reply Quote 0
            • K
              kyletmanel last edited by

              Sorry, that was after the first command in the link that was provided ‘mysql’

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

                root@fogserv:/# mysql
                ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)

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

                  @kyletmanel the db password is labeled as snmysqlpass=
                  you would use it like:
                  mysql -u root -p then hit enter, and supply the password.

                  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
                  • K
                    kyletmanel last edited by

                    ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)
                    There is a password located in the /opt/fog/.fogsettings file, though I am unclear how to use this to access the database.

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

                      @kyletmanel You need to become root first. sudo -i

                      And, if there’s a db password set, you might find it in the file /opt/fog/.fogsettings but this would only be there for newer fog versions. you could look inside of config.class.php for a db pass as well. You can search for that file with find /var/www | grep config.class.php

                      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
                      • K
                        kyletmanel last edited by

                        fog@fogserv:/$ mysql
                        ERROR 1045 (28000): Access denied for user ‘fog’@‘localhost’ (using password: NO)

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

                          if you have root access to the server AND you’re on fog trunk, you can follow steps here:
                          https://wiki.fogproject.org/wiki/index.php?title=Password_Central

                          And, if you’re not on FOG Trunk, that’ll at least point you in the right direction.

                          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

                          253
                          Online

                          10.2k
                          Users

                          16.3k
                          Topics

                          149.9k
                          Posts

                          Copyright © 2012-2020 FOG Project