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

Prevent Image Deletion

Scheduled Pinned Locked Moved Solved
Feature Request
2
4
1.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.
  • Y
    YuYo
    last edited by Sep 9, 2014, 6:49 AM

    It would be great if in the image definition page you could include a check box to prevent an “accidental” image deletion.

    This check box would execute a “chattr +i” on the image directory, so nobody could delete it unless he unchecks the checkbox.

    I hope I made myself clear enough 😉

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Sep 9, 2014, 9:36 AM

      This feature has been requested on multiple occasions. While I see it’s usefulness, I fear that many people would become confused as to how chattr works.

      While coding such a feature as this is relatively easy, it’s also (I think), simpler to just rely upon database values. While it may not keep people from using the command line to delete files, a DB value that simply states whether or not an image can be deleted/uploaded, I think is much easier to implement that trying to have tags that execute linux commands.

      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
      • T
        Tom Elliott
        last edited by Sep 9, 2014, 10:09 AM

        SVN 2268 has a protection layer added to the DB and relevant files.

        I’m sure I missed something, but this should suffice.

        As I said before, command line methods will still allow deletion of your images, but from a GUI perspective, if the protection flag is set, the Image Cannot be deleted, nor can it be uploaded over.

        Hopefully this gets the affect you, and I’m sure many others, want/need.

        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
        • Y
          YuYo
          last edited by Sep 9, 2014, 10:11 AM

          Thanks Tom,

          That should be more than enough to reduce human errors and save some precious time to all of us.

          🙂

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

          148

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project