ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Prevent deleting files in shared folders

    IT Discussion
    15
    28
    1.9k
    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.
    • JoelJ
      Joel
      last edited by

      Hi Guys, I have recently setup a typical File Server with shared folders etc. Usual bits really.
      Whats not usual in this case, the office manager wants to prevent users being able to delete any files on the server as in the past they have deleted files accidentally.

      Structure is: Share Name > Departmental Folder > User files

      Is it possible to allow read/write access but simply prevent the deletion of files? Or at least when a user requests to delete a file, it prompts for admin credentials?

      Suggestions would be most appreciated.

      We're using Server 2012R2
      Thanks

      Emad RE 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403
        last edited by

        Nope, if you are giving them write access, you are giving them the ability to write(delete) away the files

        1 Reply Last reply Reply Quote 2
        • DustinB3403D
          DustinB3403
          last edited by

          Just get a backup system in place that would allow you to restore the individual files from the file server. UrBackup is free and does this, you'd simply need to have storage to backup to.

          1 Reply Last reply Reply Quote 0
          • iroalI
            iroal
            last edited by

            Activating Previous Versions will allow you to recover the delete files quickly in case you need it.

            DustinB3403D 1 Reply Last reply Reply Quote 2
            • DustinB3403D
              DustinB3403 @iroal
              last edited by

              @iroal said in Prevent deleting files in shared folders:

              Activating Previous Versions will allow you to recover the delete files quickly in case you need it.

              This isn't a bad idea, but it's storage based, rather than time based. So it will work, but if there 5GB of space allocated, and you go over that 5GB of space, some files in your "backups" will get dumped for the new more recent changes.

              DashrenderD 1 Reply Last reply Reply Quote 1
              • s.hacklemanS
                s.hackleman
                last edited by

                I also recommend turning on a file auditing policy. That way when someone deletes a file, you can identify the user then let office politics sort out the punishment.

                1 Reply Last reply Reply Quote 1
                • DustinB3403D
                  DustinB3403
                  last edited by

                  Office Politics never resolves anything.

                  s.hacklemanS 1 Reply Last reply Reply Quote 2
                  • s.hacklemanS
                    s.hackleman @DustinB3403
                    last edited by s.hackleman

                    @dustinb3403 said in Prevent deleting files in shared folders:

                    Office Politics never resolves anything.

                    Fair, but if you can't prevent the delete, then it will happen. Then management will come to you and say "Where is my file?" You can then restore it from backups, and the next words out of their mouth will be "What happened?" It is nice to be able to say "on 11/30/17 at 1:15PM, Bill deleted it. I don't know why he did that."

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @s.hackleman
                      last edited by

                      @s-hackleman said in Prevent deleting files in shared folders:

                      @dustinb3403 said in Prevent deleting files in shared folders:

                      Office Politics never resolves anything.

                      Fair, but if you can't prevent the delete, then it will happen. Then management will come to you and say "Where is my file?" You can then restore it from backups, and the next words out of their mouth will be "What happened?" It is nice to be able to say "on 11/30/17 at 1:15PM, Bill deleted it. I don't know why he did that."

                      Oh I didn't disagree. I was just stating that office politics never resolves anything.

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        Deleting is part of the ability to write. You can't be able to write but not delete. Delete is just a form of writing. Same as with paper.

                        JaredBuschJ stacksofplatesS 2 Replies Last reply Reply Quote 1
                        • JaredBuschJ
                          JaredBusch @scottalanmiller
                          last edited by

                          @scottalanmiller said in Prevent deleting files in shared folders:

                          Deleting is part of the ability to write. You can't be able to write but not delete. Delete is just a form of writing. Same as with paper.

                          Yeah, I have witnessed so many bad setups over the years because people try to do this.

                          Hell to save a document with MS Office, you are writing to a temp file, deleting the original, and then renaming the temp file.

                          1 Reply Last reply Reply Quote 6
                          • DashrenderD
                            Dashrender @DustinB3403
                            last edited by

                            @dustinb3403 said in Prevent deleting files in shared folders:

                            @iroal said in Prevent deleting files in shared folders:

                            Activating Previous Versions will allow you to recover the delete files quickly in case you need it.

                            This isn't a bad idea, but it's storage based, rather than time based. So it will work, but if there 5GB of space allocated, and you go over that 5GB of space, some files in your "backups" will get dumped for the new more recent changes.

                            Design the system to have at least as much shadowprotect as you have daily changes (or at least as often as the backups run). This way if it's longer than that, you just go to the backups.

                            1 Reply Last reply Reply Quote 0
                            • dbeatoD
                              dbeato
                              last edited by

                              Backups will be your answer here and say setup Shadow Copies that are at key times in the day and that are stored for at least a month.

                              1 Reply Last reply Reply Quote 0
                              • dafyreD
                                dafyre
                                last edited by

                                You can't set their permissions like this:

                                0_1512055964104_7ccb0493-b470-453b-ba11-1df4bea1a393-image.png

                                ?

                                DustinB3403D JaredBuschJ 2 Replies Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403 @dafyre
                                  last edited by

                                  @dafyre said in Prevent deleting files in shared folders:

                                  You can't set their permissions like this:

                                  0_1512055964104_7ccb0493-b470-453b-ba11-1df4bea1a393-image.png

                                  ?

                                  No because it's a stupid practice and approach to prevent something that is already protected against with Backups.

                                  dafyreD 1 Reply Last reply Reply Quote 0
                                  • dafyreD
                                    dafyre @DustinB3403
                                    last edited by

                                    @dustinb3403 said in Prevent deleting files in shared folders:

                                    @dafyre said in Prevent deleting files in shared folders:

                                    You can't set their permissions like this:

                                    0_1512055964104_7ccb0493-b470-453b-ba11-1df4bea1a393-image.png

                                    ?

                                    No because it's a stupid practice and approach to prevent something that is already should be protected against with Backups.

                                    FTFY. He didn't mention backups, so I'm not going assume they are there. Though I agree backups are of course the best solution, but that's another topic.

                                    1 Reply Last reply Reply Quote 0
                                    • ObsolesceO
                                      Obsolesce
                                      last edited by Obsolesce

                                      Just turn on shadow copies and file auditing... and keep things the way they should be, either read or read/write like others suggested.

                                      Then if someone deletes a file, restore it from the shadow copy. Then look at your audit logs to see who deleted it and when, and give that info to their boss.

                                      1 Reply Last reply Reply Quote 0
                                      • black3dynamiteB
                                        black3dynamite
                                        last edited by black3dynamite

                                        I would look into role based access control.
                                        http://www.yster.org/role-based-access-control/

                                        And then utilize shadow copy, audit logs and making sure to have a good backup setup.

                                        1 Reply Last reply Reply Quote 0
                                        • JaredBuschJ
                                          JaredBusch @dafyre
                                          last edited by

                                          @dafyre said in Prevent deleting files in shared folders:

                                          You can't set their permissions like this:

                                          0_1512055964104_7ccb0493-b470-453b-ba11-1df4bea1a393-image.png

                                          ?

                                          Of course you can. But it breaks shit as already mentioned.

                                          1 Reply Last reply Reply Quote 2
                                          • bigbearB
                                            bigbear
                                            last edited by

                                            Which reminds me of my first menial task in the Mead datacenter in 2001, deleting office tmp files from our 200 netware file shares every day.

                                            Also, ushering in and out tape backups to the daily pickup company who took them offsite for rotation.

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