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

    Hard Drive Protection and Fog Client

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    12
    2.8k
    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.
    • M
      Max Kern
      last edited by

      Hi,
      in this solution there is no way for a whitelist.
      All other Programms are working fine.
      There is also no way to change this software because as a school we cannot quit this licens.

      I only need the call of the PHP script which perform the action of resetting the encryption data until we have another solution.

      Ive read something about users with dual boot system which have a simular issue is there a solution for that kind of Problem?

      1 Reply Last reply Reply Quote 0
      • M
        Max Kern
        last edited by

        @Joe-Schmitt maybe thats a point, but this is not a solution for my Problem.
        I dont want to reset the token without authentication, i want to reset the token from the fog Server itselfe, with a cron Job.
        Maybe there will be a Security issue, but it is only Imaging and manage a Client and no real sensitiv Data.

        I also can search in the Script for the function call of the encryption data, but this is no clean way.

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

          @Joe-Schmitt said in Hard Drive Protection and Fog Client:

          e.g. deep freeze has thaw sections

          Centurion Smart Shield, a locking software I have experience with, also has what they call “Persistent” partitions. A.K.A. the P:\ drive.

          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
          • Wayne WorkmanW
            Wayne Workman @Max Kern
            last edited by Wayne Workman

            @Max-Kern said in Hard Drive Protection and Fog Client:

            i want to reset the token from the fog Server itselfe, with a cron Job.

            That’s not as bad. I can write a script for you to do it.What OS are you using for the FOG Server?

            EDIT
            duh, read wayne. You’re using Debian.

            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/

            M 1 Reply Last reply Reply Quote 0
            • M
              Max Kern @Wayne Workman
              last edited by

              Thank you @Wayne-Workman.
              Maybe this is also a solution for People with simular Problems.

              1 Reply Last reply Reply Quote 0
              • J
                Joe Schmitt Senior Developer
                last edited by

                @Max-Kern for reference what hard drive protection software are you using?

                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.

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

                  The below script should do it, and it should work in Cron fine since I pathed out the mysql command dynamically.

                  The software the forums uses, nodeBB, has a bug in it lately where it removes spaces from BASH scripts. In the below script where you see [[ and ]] There needs to be a space after [[ and a space before ]]

                  #!/bin/bash
                  
                  #----- MySQL Credentials -----#
                  snmysqluser=""
                  snmysqlpass=""
                  snmysqlhost=""
                  # If user and pass is blank, leave just a set of double quotes like ""
                  # if the db is local, set the host to just double quotes "" or "127.0.0.1" or "localhost"
                  
                  
                  #----- Begin Program -----#
                  
                  mysql=$(command -v mysql)
                  
                  resetEncryptionForAll="UPDATE hosts SET hostPubKey=\"\", hostSecToken=\"\", hostSecTime=\"0000-00-00 00:00:00\""
                  
                  #Test lines to make sure the sql looks good.
                  #echo
                  #echo $resetEncryptionForAll
                  #echo
                  
                  options="-sN"
                  if [[ $snmysqlhost != "" ]]; then
                          options="$options -h$snmysqlhost"
                  fi
                  if [[ $snmysqluser != "" ]]; then
                          options="$options -u$snmysqluser"
                  fi
                  if [[ $snmysqlpass != "" ]]; then
                          options="$options -p$snmysqlpass"
                  fi
                  options="$options -D fog -e"
                  
                  
                  #Do it
                  $mysql $options "$resetEncryptionForAll"
                  

                  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/

                  M 1 Reply Last reply Reply Quote 1
                  • M
                    Max Kern @Joe Schmitt
                    last edited by

                    @Joe-Schmitt it is a german solution named "Dr. Kaiser PC-Wächter/Drive "

                    1 Reply Last reply Reply Quote 0
                    • M
                      Max Kern @Wayne Workman
                      last edited by

                      @Wayne-Workman Ah, ok it all goes over the DB.

                      So if want to reset only one Group in, this example Group with id 2, i can do also:

                      UPDATE hosts AS h INNER JOIN groupMembers AS s on h.hostID=s.gmhostID SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00" WHERE s.gmGroupID=2;
                      

                      If i want ít with the Group Name i must do a second join, but that shouldnt be the Problem.

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

                        @Max-Kern Well just try and see. Clearly you know some SQL, I don’t think you need my help any further lol. All I ask is that if you tweak the script, share it here.

                        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

                        143

                        Online

                        12.2k

                        Users

                        17.3k

                        Topics

                        155.5k

                        Posts
                        Copyright © 2012-2024 FOG Project