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

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

Scheduled Pinned Locked Moved Unsolved
FOG Problems
password
2
11
2.1k
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 Aug 29, 2016, 9:37 PM

    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
    • W
      Wayne Workman
      last edited by Aug 29, 2016, 9:46 PM

      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
      • K
        kyletmanel
        last edited by Aug 29, 2016, 10:19 PM

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

        W 1 Reply Last reply Aug 29, 2016, 10:20 PM Reply Quote 0
        • W
          Wayne Workman @kyletmanel
          last edited by Wayne Workman Aug 29, 2016, 4:42 PM Aug 29, 2016, 10:20 PM

          @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 Aug 29, 2016, 10:46 PM

            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.

            W 1 Reply Last reply Aug 29, 2016, 10:48 PM Reply Quote 0
            • W
              Wayne Workman @kyletmanel
              last edited by Aug 29, 2016, 10:48 PM

              @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 Aug 29, 2016, 11:02 PM

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

                1 Reply Last reply Reply Quote 0
                • K
                  kyletmanel
                  last edited by Aug 29, 2016, 11:05 PM

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

                  W 1 Reply Last reply Aug 29, 2016, 11:11 PM Reply Quote 0
                  • W
                    Wayne Workman @kyletmanel
                    last edited by Aug 29, 2016, 11:11 PM

                    @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 Aug 30, 2016, 4:03 PM Reply Quote 0
                    • K
                      kyletmanel @Wayne Workman
                      last edited by Aug 30, 2016, 4:03 PM

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

                      W 1 Reply Last reply Aug 30, 2016, 4:14 PM Reply Quote 0
                      • W
                        Wayne Workman @kyletmanel
                        last edited by Aug 30, 2016, 4:14 PM

                        @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
                        • 1 / 1
                        1 / 1
                        • First post
                          2/11
                          Last post

                        148

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project