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.
    • 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
                                • JoelJ
                                  Joel
                                  last edited by

                                  cheers guys. What I love about this forum is that theres always a superb response and members always take a general interest and open the topic to further discussions. It's a great community here so thanks for the responses....Yes, we do have a off-site backup in place but it runs once a day at 10pm. I like the idea of shadow copies and the audit trail.

                                  I'm going to enable ShadowCopies for 1pm daily. One extra copy is better than nothing or would you suggest a number of copies each day?

                                  How do I enable the audit trail?

                                  DashrenderD ObsolesceO 3 Replies Last reply Reply Quote 0
                                  • Emad RE
                                    Emad R @Joel
                                    last edited by

                                    @joel

                                    1. Identify who needs RW and who can live with R only, usually talk with managers and they can tell you who can and who should not.

                                    2. Backup the share at the end of each day, by taking an archived snapshot. that way even if there was deletion you can restore

                                    3. There is feature where you can track those stuff, but i dont see how usefull it will be in real life

                                    1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates @scottalanmiller
                                      last edited by stacksofplates

                                      @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.

                                      Does Windows (NTFS) have a sticky bit? You could do this on a Linux OS if you have the uid set to root and the gid set to the group the users are in and setgid and sticky bit are turned on for the directory. The auto root uid is the tricky part. It would by default be their user.

                                      1 Reply Last reply Reply Quote 2
                                      • J
                                        joelbarlow40
                                        last edited by joelbarlow40

                                        You need to set the rights to authenticated users/everyone ( Read and Write ).

                                        You can also try below steps to set NTFS permission for that shared folder.

                                        -> Right click on that folder and go to Properties and from the Security tab, click advanced.
                                        -> click "Change permission" and Click "Add" and type "everyone" in the box .
                                        -> Open "everyone" end change its permission as you wish.

                                        Please refer to below article for more information:

                                        Set Permissions for Shared Folders

                                        File and Folder Permissions

                                        1 Reply Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender @Joel
                                          last edited by

                                          @joel said in Prevent deleting files in shared folders:

                                          cheers guys. What I love about this forum is that theres always a superb response and members always take a general interest and open the topic to further discussions. It's a great community here so thanks for the responses....Yes, we do have a off-site backup in place but it runs once a day at 10pm. I like the idea of shadow copies and the audit trail.

                                          I'm going to enable ShadowCopies for 1pm daily. One extra copy is better than nothing or would you suggest a number of copies each day?

                                          How do I enable the audit trail?

                                          I haven't used/read up on Shadowcopy in a while. If I recall correctly, it only makes copies of files that have changed since the last copy, so setting it for several times a day might be good.

                                          As for your normal backups, What are you using for backups? Can you run incrementals during the day?

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

                                            @joel said in Prevent deleting files in shared folders:

                                            I'm going to enable ShadowCopies for 1pm daily. One extra copy is better than nothing or would you suggest a number of copies each day?

                                            Shadowcopies are great and they save a lot of time and potential headaches due to users not paying attention to what they are deleting or working with, accidental or purposeful deletions. So long as you understand Shadowcopies are NOT backups and should never be treated or thought of as such, they work well.

                                            The default settings work well in my environment, a snapshot once in the mid-morning and once in the early afternoon.

                                            You should be able to get away with a handful of GB to a few hundred GB, but it depends on how many files, how often they change, and how big these files are.

                                            In one example, I have a 4.5 TB file server using a 500 GB shadowcopy volume. It's only using 300 something GB and the shadowcopies go back like a month.

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