SOLVED Protect Images from being overwritten

  • 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!

  • 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!

  • Moderator

    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:
    sudo chattr +i /images/imagefile

    to unprotect:
    sudo chattr -i /images/imagefile

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