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

    Protect Images from being overwritten

    Scheduled Pinned Locked Moved Solved
    Feature Request
    2
    3
    2.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.
    • M
      mattyjpeterson
      last edited by

      I have one suggestion in regards to images.

      It would be great if there was a simple checkbox in the properties of each image that would allow you to enable or disable overwrite protection. I have, on more than one occasion, overwritten images simply because I forgot to click the Update button at the bottom of the host properties page when assigning a different image to the host.

      I’m hoping this would be something simple to implement. It would go a long way to ease my frustration. For now, I’ll just religiously remind myself to click the Update button. But I’m not the only staff member here who uses FOG for imaging PCs.

      If this feature exists and I haven’t come across it, please inform me.

      Thanks guys!

      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        It’s not a FOG feature, but you can make the files in the /images/ folder “immutable” meaning that even root cannot change them until the flag is removed.

        to protect a file:
        [code]
        sudo chattr +i /images/imagefile
        [/code]

        to unprotect:
        [code]
        sudo chattr -i /images/imagefile
        [/code]

        for multiple partition images:
        [code]
        sudo chattr -R +i /images/foldername
        [/code]


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

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

          Thanks for the info!

          I’ll certainly use those commands for now. Maybe sometime in the future this could be added to FOG. Until then, this helps immensely.

          Thanks again chad-bisd!

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

          163

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project