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

Passwords, I broke 'em...

Scheduled Pinned Locked Moved Solved
FOG Problems
4
15
2.7k
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.
  • P
    palloquin
    last edited by Feb 8, 2017, 1:49 PM

    Hi,

    So I thought I’d change FOG’s default very secure password to something slightly harder to remember 😉

    Silly as I am I went in to the web interface and under ‘User Management’ located the ‘fog’ user and changed the password… BOOM, done, that all there’s to it… or so I thought… Logging in on the web interface with the new password works fine, but then capturing an image fails, all kinds up update errors ftp_login() errors, etc.

    This is roughly what I get at the end of a capture task:

    * Task Complete
    * Updating Database...............................Failed
    * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host: 172.16.1.2, Username: fog
    * Reattempting to update database.................Failed
    * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host: 172.16.1.2, Username: fog
    ---- AND SO ON ----
    

    after reading: https://wiki.fogproject.org/wiki/index.php?title=Password_Central

    I tried a bunch of things:

    1. change the linux fog user password.
      direct FTP still not working.
      — panic, ‘maybe I don’t really need all that password security stuff’ —

    2. changed back the linux fog user password.
      direct FTP still working again!
      but, still getting the error while capturing the image
      — panic and cry (a little), ‘I really don’t understand all this’ —

    3. changed back the user password in the web interface
      Still captures fail with the ftp_login() error.
      — panic, cry (more), ‘Maybe I should consider quitting my job?’ —

    so, before I go for step
    4) reinstall f’ing centos and start from scratch…
    — suck it up, I should have learned a trade ----

    I thought I’d ask what to do here…

    Thank you all again!

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 8, 2017, 1:52 PM

      Please edit the fogserver file /opt/fog/.fogsettings and update the password= field to match what you typed in the management page. After this re-run the fog installer, it will update your system’s fog user passwords.

      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 1
      • P
        palloquin
        last edited by Wayne Workman Feb 8, 2017, 7:59 AM Feb 8, 2017, 1:55 PM

        Hi Tom!

        another week, another question you help me with 😉

        /opt/fog/.fogsettings contains some form of encoded password at the moment.

        should I replace it with “password” plain text to reset?

        and… how do you make pards of your code red in your posts?

        testing 123

        T W 2 Replies Last reply Feb 8, 2017, 1:57 PM Reply Quote 0
        • T
          Tom Elliott @palloquin
          last edited by Feb 8, 2017, 1:57 PM

          @palloquin The “password” you’re seeing currently is a randomly set password. It is the “plaintext” password.

          To make parts “red” as you stated I’m using “backtick{elementtoredden}backtick”

          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
          • W
            Wayne Workman @palloquin
            last edited by Feb 8, 2017, 1:59 PM

            @palloquin I edited your post to show an example. Click the edit button to look at 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/

            P 1 Reply Last reply Feb 8, 2017, 2:00 PM Reply Quote 0
            • P
              palloquin @Wayne Workman
              last edited by Feb 8, 2017, 2:00 PM

              @Wayne-Workman
              That is quite simple
              thanks!

              1 Reply Last reply Reply Quote 0
              • P
                palloquin
                last edited by palloquin Feb 8, 2017, 10:11 AM Feb 8, 2017, 4:11 PM

                Ok, panic is over, things are working again…

                Now for the million dollar question…

                What if, some one, insane as this might sound, would think 'Hmmmmm I don’t like it if my password is… “password” ', what if this foolish person was bent on changing it… how would he go about that?

                Is there a step by step guide?

                :)

                Thanks!

                Daaf

                T W 2 Replies Last reply Feb 8, 2017, 4:41 PM Reply Quote 0
                • T
                  Tom Elliott @palloquin
                  last edited by Feb 8, 2017, 4:41 PM

                  @palloquin THe simplest method:

                  Edit the /opt/fog/.fogsettings file and edit between the ''s to set whatever password you want.

                  Re-run the fog installer.

                  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 1
                  • W
                    Wayne Workman @palloquin
                    last edited by Feb 8, 2017, 7:30 PM

                    @palloquin What tom said is probably part of half of the things we say here. do this, do that, blah blah then re-run the fog installer. The fog installer is the first thing you should ‘just run’ when your server is in trouble. It makes sure a bunch of things are set correctly, it rewrites web files, can configure dhcp, restarts services - lots of stuff.

                    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 Feb 8, 2017, 7:57 PM Reply Quote 0
                    • B
                      butch2861 @Wayne Workman
                      last edited by Feb 8, 2017, 7:57 PM

                      @Wayne-Workman
                      Hey guys…THIS is my exact problem I am having with my server today…is my FOG Storage Node password to be the same as my TFTP Server password?

                      1 Reply Last reply Reply Quote 0
                      • B
                        butch2861 @Wayne Workman
                        last edited by Feb 8, 2017, 9:36 PM

                        @Wayne-Workman
                        I went ahead and am doing the update now…
                        to Fog
                        after the update it is saying i need to install/update my database schema…by going into the web interface…what do I do when I am there? saying press enter when database is updated/installed

                        W 1 Reply Last reply Feb 9, 2017, 2:04 PM Reply Quote 0
                        • W
                          Wayne Workman @butch2861
                          last edited by Wayne Workman Feb 9, 2017, 8:06 AM Feb 9, 2017, 2:04 PM

                          @butch2861 said in Passwords, I broke 'em...:

                          what do I do when I am there?

                          As it says. Visit your web interface, this is referring to your FOG Server’s web interface. http://x.x.x.x/fog/management where x.x.x.x is your FOG Server’s IP address.

                          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
                          • P
                            palloquin
                            last edited by Feb 9, 2017, 4:26 PM

                            Thanks @Tom-Elliott , @Wayne-Workman !

                            I’ll keep the re-run in mind in case of future issues.

                            This begs the question though… Why can I change the ‘fog’ user’s password through the web interface if this just breaks it…
                            If I understand correctly, there is no way of just using the web interface to change the fog user’s password. I will always afterwards have to either:

                            1. re-run the install script
                              or
                            2. become much wiser than I am and do some linux-config-dark-magic-stuffto make it work.

                            right?

                            T W 2 Replies Last reply Feb 9, 2017, 4:38 PM Reply Quote 1
                            • T
                              Tom Elliott @palloquin
                              last edited by Feb 9, 2017, 4:38 PM

                              @palloquin Correct.

                              Just like you wouldn’t want a website being capable of resetting your windows password on a whim, we don’t allow changing the “users” password from the fog website. Imagine if we did? All you would need to do is type root, password and any person would have access to your system.

                              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 1
                              • W
                                Wayne Workman @palloquin
                                last edited by Wayne Workman Feb 9, 2017, 6:09 PM Feb 10, 2017, 12:08 AM

                                @palloquin said in Passwords, I broke 'em...:

                                Why can I change the ‘fog’ user’s password through the web interface if this just breaks it…

                                I should clairify something here - the web credentials you use to log into the web interface are not the same credential-set as the storage node’s default ‘fog’ account. These are two completely separate and independent things. The wiki article called “Password Central” explains every single password in the FOG Server, how it’s used, what it’s for, where to change it. You might look through it if you’re really interested in learning more linux-config-dark-magic-stuff

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

                                259

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project