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

    Can't login after accidentally setting fog user to quick deployment

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    25
    4.0k
    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.
    • B
      BusyTech
      last edited by BusyTech

      Here is what happened. I ran the code per the wiki of
      sudo apt-get update && apt-get install svn
      and it came back and asked if I was root so I fixed it by adding sudo to the second section like this
      sudo apt-get update && sudo apt-get install svn

      It ran and came back and said unable to locate package svn. I am going through the process of trying to find out why but if you have a quick answer that would be helpful.

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

        @BusyTech Use the git method. Sourceforge is unreliable and untrustworthy. We have the code there because some people use it, but if at all possible everyone should use git instead.

        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/

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

          @Wayne-Workman

          Okay I think I have found what the next step is. As you can see from my previous posts (I forgot to link them to you…long day) that it ran into an error and said unable to locate package svn. Isn’t it referred to as subversion so I would have to run

          sudo apt-get install subversion

          Please confirm as I don’t want to mess this server up any more than I already have with my stupid mistake.
          Thanks

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

            @BusyTech I would still suggest using git instead.

            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/

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

              @Wayne-Workman Okay I will go do that now. I was wondering about that.

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

                @Wayne-Workman
                Okay I have completed the upgrading but now I am trying to reset my fog user account. When I use the second set of instructions that start with

                mysql

                It comes up that access is denied for user root. I know I set a password for the sql database but I cannot find instructions for the trunk on how to access mysql. Am I doing something wrong?

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

                  @BusyTech The password would (or should) still be present inside of .fogsettings, labeled as snmysqlpass or something like that. Run this command to see the file: cat /opt/fog/.fogsettings

                  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/

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

                    @Wayne-Workman
                    Okay I have completed all of the steps and when I try to login as fog via the web interface it still says invalid login.
                    Now what?

                    At least I have the latest trunk…

                    1 Reply Last reply Reply Quote 0
                    • B
                      BusyTech
                      last edited by

                      What is interesting is that before I did all of the steps I could login into the mobile section using fog and the password but I was unable to login into the regular page. Now I am unable to login into either. So it definitely reset something but I don’t know what.

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

                        @BusyTech Did you first delete the existing fog user?

                        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/

                        B 2 Replies Last reply Reply Quote 0
                        • B
                          BusyTech @Wayne Workman
                          last edited by

                          @Wayne-Workman
                          No I did not as that was not part of the instructions. How do I do that? This is where being a noob makes it a little harder.
                          Thanks for all of your help.

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

                            @BusyTech You could just truncate the table I guess.

                            Between the use fog and the rest of the steps, do this: truncate table users;

                            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/

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

                              @Wayne-Workman
                              Sorry I didn’t see that as part of the instructions. Is it:

                              sudo userdel fog
                              
                              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                              • B
                                BusyTech @Wayne Workman
                                last edited by

                                @Wayne-Workman
                                That did not work either. Should I try
                                sudo userdel fog

                                and then follow the instructions to create a user named fog? With the amount of time I have spent on this I could have rebuilt the entire virtual machine.

                                Thanks for your help.

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

                                  @BusyTech Oh no, no no no. Don’t do that.

                                  I think there is some confusion here.

                                  You lost web access - this has absolutely nothing to do with the local fog user whatsoever.

                                  This only requires work in MySQL to fix - that’s it.

                                  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/

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

                                    @Wayne-Workman
                                    Okay. I am glad you clarified. I only lost web access when I checked the box to allow that user to do quick deployments. Which, if I understand it correctly, changes that user to mobile access only. Unfortunately, I do not know how to reset that user to give them web access again.

                                    I would rather not rebuild the whole thing but nothing seems to be working. I am learning a lot about it though. I guess that is the silver lining.

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

                                      @BusyTech

                                      mysql
                                      use fog;
                                      truncate table users;
                                      INSERT INTO `users` (`uName`,`uPass`,`uCreateBy`,`uType`) VALUES ('fog','$2y$11$g0Hu8OaOStuPk7WWYGh6Wu4PLlZDZGOkzMwEEAk.rZMrI9IdDwno.','localAdmin','0');
                                      

                                      then try to log in.

                                      After doing that, you’ll probably need to re-run the installer since you deleted the local fog user.

                                      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/

                                      B 2 Replies Last reply Reply Quote 0
                                      • B
                                        BusyTech @Wayne Workman
                                        last edited by

                                        @Wayne-Workman
                                        Just so you know I never ran the one command to delete the local fog user. I was just asking if that was the command.
                                        Should i still do the above commands if haven’t deleted it?
                                        Sorry for the confusion. I just know you are probably helping other people too.

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

                                          @Wayne-Workman
                                          Completed that step. It came back as Query OK 1 row affected but NO LUCK. I did not delete the local fog user, at least not to the best of my knowledge. so I did not re-run the installer.

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

                                            @BusyTech You need to run all those commands I posted, in order. If you did not run the command to delete the local fog user then you don’t need to re-run the installer - but you should know it isn’t ever a bad thing to re-run the installer. It can help you solve issues.

                                            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/

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

                                            187

                                            Online

                                            12.2k

                                            Users

                                            17.3k

                                            Topics

                                            155.4k

                                            Posts
                                            Copyright © 2012-2024 FOG Project