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

    Is it possible to remove the FOG Quick image password?

    Scheduled Pinned Locked Moved
    FOG Problems
    9
    35
    16.5k
    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.
    • Tom ElliottT
      Tom Elliott
      last edited by

      Do you have anything in your apache error logs?

      A good way to get the most out of the information:

      Start your client and get it “ready” to select an image to push but don’t choose an image yet.

      Open a terminal/ssh to your fog server. Run:
      [code]sudo tail -100f /var/log/apache2/error.log[/code]

      Press enter on the the image you want to push to the client.

      Press CTRL+C on the ssh terminal. The last few lines of the error log should give you where the problem is.

      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
      • D
        Darkzion
        last edited by

        [quote=“Tom Elliott, post: 42476, member: 7271”]Do you have anything in your apache error logs?

        [/quote]

        Thank again Tom.
        According to the apache logs i keep getting this >

        [Fri Feb 20 16:55:48.371529 2015] [:error] [pid 2376] [client 172.16.200.14:33459] PHP Warning: array_unique() expects parameter 1 to be array, null given in /var/www/fog/lib/fog/HostManager.class.php on line 8

        Every time i click “quick image” from the main menu, and every time i click on a image on the next menu.But dont think thats related. This only happens when i havent registered the host. If i register it. Then i dont get any error message at all in the error log. But it still kicks me back to the main menu when i select an image

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

          I’ve found a solution:

          For the fog.quickimage menu item
          before the params setting put:
          [code]set username fogguiusernamehere
          set password fogguipasswordhere[/code]

          Reset the param username and param password back to:
          [code]param username ${username}
          param password ${password}[/code]

          This should work at least in my testing it has.

          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
          • D
            Darkzion
            last edited by

            Thanks again Tom.
            Im sorry for the late reply. Been out of the country.
            I just wanted to say that the last solution you gave fixed it for us.
            Thank you so much for your help 🙂

            1 Reply Last reply Reply Quote 0
            • M
              Mikael
              last edited by

              For the extra clarity, this worked for me. Edited /var/www/fog/lib/fog/BootMenu.class.php, the rows just below "…$option == ‘fog.quickimage’)

              //              print "login\n";
              				print "set username username\n";
              				print "set password password\n";
              

              /Thanks!

              1 Reply Last reply Reply Quote 1
              • L
                lebrun78
                last edited by

                is it always available on 1.3.3 version ?

                Fog Version: Fog 1.5.10
                Server OS: AlmaLinux release 8.8

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

                  @lebrun78 Is what always available?

                  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

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lebrun78 @Tom Elliott
                    last edited by

                    @Tom-Elliott
                    Is the procedure described above?

                    the file fog.quickimage doesn’t exist on base 1.3.3.
                    Should I add it ?

                    Fog Version: Fog 1.5.10
                    Server OS: AlmaLinux release 8.8

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

                      @lebrun78 What procedure?

                      iPXE menu items have never been “files” either.

                      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
                      • L
                        lebrun78 @Joseph Hales
                        last edited by

                        this one :

                        @Joseph-Hales said in Is it possible to remove the FOG Quick image password?:

                        [SIZE=4][B][FONT=sans-serif][COLOR=#000000]From [url]http://fogproject.org/wiki/index.php/Modifying_the_Init_Image[/url][/COLOR][/FONT][/B][/SIZE]

                        [SIZE=4][B][FONT=sans-serif][COLOR=#000000] [/COLOR][/FONT][/B][/SIZE]

                        [SIZE=4][B][FONT=sans-serif][COLOR=#000000]Remove Authentication from Quick Image[/COLOR][/FONT][/B][/SIZE]

                        [FONT=sans-serif][COLOR=#000000]This example will show how to automatically authenticate users when they select Quick Image. If you are happy to allow anybody to deploy an image to a hardrive this is for you.[/COLOR][/FONT]
                        [COLOR=#000000][FONT=monospace]cd /tftpboot/fog/images
                        gunzip init.gz
                        mkdir initmountdir
                        mount -o loop init initmountdir
                        cd /tftpboot/fog/images/initmountdir/bin/[/FONT][/COLOR]
                        [FONT=sans-serif][COLOR=#000000]Edit fog.quickimage
                        Comment out the followig lines by putting a # in front[/COLOR][/FONT]
                        [COLOR=#000000][FONT=monospace] #echo " Enter a valid FOG username and password.";
                        #echo “”;
                        #echo -n " Username: ";
                        #read username;
                        #echo “”
                        #echo -n " Password: ";
                        #stty -echo
                        #read password;
                        #stty echo;
                        #echo “”;
                        #echo “”[/FONT][/COLOR]
                        [FONT=sans-serif][COLOR=#000000]Replace with:[/COLOR][/FONT]
                        [COLOR=#000000][FONT=monospace] username=“a valid username”
                        password=“a valid password”;[/FONT][/COLOR]
                        [FONT=sans-serif][COLOR=#000000]Save the modification[/COLOR][/FONT]
                        [COLOR=#000000][FONT=monospace]cd …/…
                        umount initmountdir/
                        rmdir initmountdir
                        gzip init[/FONT][/COLOR]
                        [FONT=sans-serif][COLOR=#000000]You are done and now users can image without the need for a username and a password.[/COLOR][/FONT]

                        Fog Version: Fog 1.5.10
                        Server OS: AlmaLinux release 8.8

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

                          @lebrun78 I still don’t understand what you’re talking about.

                          You posted to a thread that’s over a year old since it’s last communication asking about a procedure that I still don’t know what you’re looking for.

                          The IPXE menu stuff is handled on the GUI now. the fog.quickimage script from the init’s perspective doesn’t exist which was already discussed in this thread as well. (https://forums.fogproject.org/topic/4433/is-it-possible-to-remove-the-fog-quick-image-password/3#)

                          I don’t know what it is you’re asking or trying to accomplish.

                          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
                          • L
                            lebrun78
                            last edited by

                            indeed, I’m a drag

                            Fog Version: Fog 1.5.10
                            Server OS: AlmaLinux release 8.8

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

                              @lebrun78 what are you trying to do? I can’t help without understanding what you are looking for.

                              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
                              • L
                                lebrun78
                                last edited by

                                I would like, for a group of machine which the name is beginning by i207, not have to insert login/password to deploy image directly from pxe menu.
                                But for all the other machines I would have to keep the login/password

                                Fog Version: Fog 1.5.10
                                Server OS: AlmaLinux release 8.8

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

                                  @Tom-Elliott this is what he’s trying to do: https://forums.fogproject.org/topic/9290/boot-menu-configuration-document

                                  @lebrun78 For the one classroom that you want to not manage, give them their own server on their own vlan, or give the teacher ‘mobile’ access only. Or schedule the machines to just get imaged every single night or weekend or whenever the teacher requests the classroom be imaged. You can just schedule these things, we can walk you through it. Also it’s not hard to use groups to deploy whenever it’s requested either. If you’re using the FOG Client and DHCP and have WOL enabled, and you have systems set to boot to the network first, you can deploy to a classroom without being there and all will be fine.

                                  The amount of work involved with you continuing to do all of the imaging is not that much when your environment is setup to your advantage.

                                  0_1485785830906_Mobile Access.png

                                  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/

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

                                    @Wayne-Workman said in Is it possible to remove the FOG Quick image password?:
                                    thanks for your answer

                                    Fog Version: Fog 1.5.10
                                    Server OS: AlmaLinux release 8.8

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      lebrun78
                                      last edited by lebrun78

                                      I tried modify the fog.deployimage with this code:

                                      #login
                                      params
                                      param mac0 ${net0/mac}
                                      param arch ${arch}
                                      param hostname ${hostname}
                                      goto host_${hostname} || goto autres
                                      :host_admin13
                                      param username toto
                                      param password toto
                                      param qihost 1
                                      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                      goto fin
                                      :autres
                                      login
                                      param username ${username}
                                      param password ${password}
                                      param qihost 1
                                      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                      :fin
                                      

                                      My test machine admin13 goes into the loop host_admin13, but login and password are not valid.
                                      It may be a coding problem for the password ?

                                      Fog Version: Fog 1.5.10
                                      Server OS: AlmaLinux release 8.8

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        lebrun78
                                        last edited by

                                        login toto and password toto is a mobile account

                                        Fog Version: Fog 1.5.10
                                        Server OS: AlmaLinux release 8.8

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          lebrun78 @lebrun78
                                          last edited by lebrun78

                                          @lebrun78
                                          It works know without password.

                                          Here is the code I put in the deploymenu:

                                          #login
                                          params
                                          param mac0 ${net0/mac}
                                          param arch ${arch}
                                          param hostname ${hostname}
                                          goto host_${hostname} || goto autres
                                          :host_room24PC1
                                          :host_room24PC2
                                          :host_room24PC3
                                          set username foo
                                          set password foo
                                          params
                                          param username foo
                                          param password foo
                                          param qihost 1
                                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                          goto fin
                                          :autres
                                          login
                                          params
                                          param username ${username}
                                          param password ${password}
                                          param qihost 1
                                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                                          :fin
                                          

                                          Could I limit access to an image or a short list of images with deployimage menu ?

                                          Fog Version: Fog 1.5.10
                                          Server OS: AlmaLinux release 8.8

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

                                            @lebrun78 This is not included.

                                            That said, you could build your own menu item that could provide this functionality, but i will admit it would be quite an involved process.

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

                                            153

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project