Shared folder, write but not delete

MiMadreMia87

New member
Local time
7:31 AM
Messages
37
I am applying a solution to take backup from clients machine to a shared folder location, the share management will be done through their AD accounts through a backup application.

However, I want to prevent user from accessing the shared folder location and deleting contents
it would be possible to use another account for shared file access but am looking for better option.

if Anything from the following can be done it should be great:
- Modifying permissions to allow writing and modifying content but not deleting
- Disable web access to shared location through windows explorer
- Only allowing access to shared location through the backup application in any way


Really appreciate any help.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 - 64bit
not done any Active Directory work for a while but I'm sure the delete permission was separate so a deny could be applied the the delete for the group concerned who would have the other permissions, you would need to check the stacking of the actual permissions to be sure though, a deny is a dangerous thing for sysdmins as you often forget what groups you've assigned yourself as for testing ;)

Also it's worth having a look at Sysinternals as I think they still have some advanced AD tools

As most of the others should be possible through normal NTFS permissions and even the parental controls it should be possible using Group Policy
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
What is this "backup application"? Is a program running on a server that accesses all computers and copies to a backup server? Or is installed in each computer and they copy whatever necessary into a server? Something else?
Both options are possible, but the approach can be different in each case.

Quickly answering the questions, but without a good background of the situation:
Modifying permissions to allow writing and modifying content but not deleting

That's not possible with SMB shares permissions (that only allow read/write/full control), but normal NTFS permissions can separate creating new files from deleting and modifying existing files. Allow read and write to the share, but in the underlying NTFS permissions for the shared folder allow creating but not modification or deletion. An obvious drawback if that the logical drive hosting the shared folder must be NTFS for this to work. BTW, you really want to prevent both deletions and modifications, contrary to what you request, because users should not only be unable to delete backups, but also tamper with them in any way.


Disable web access to shared location through windows explorer

This don't make any sense to me, could you explain what did you mean? "web" hasn't anything to do with SMB shares and Windows Explorer, which is in turn unrelated to anything web based.


Only allowing access to shared location through the backup application in any way

This would be the ideal option, but depends on the setup, hence my initial question.

As a separate question, why do you want to backup client machines anyway? That's not the best thing to do, because the numerous different things each one does his job and manages their files. Ideally, only the servers should be backed up, with people instructed to drop anything important there.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
The backup application is Iperius, installed on every client machine and backs up date to a NAS Storage.
This is more of a requirement, to have backup of files that match specific criteria to a central location..

It is not actually SMB shares, its NTFS, but I cannot manage to find the suitable share combination to enable the client of doing its job while still prohibiting users from deleting them.. I assume modification would be required since the backup client installs the latest version of each document, writing the changes only.

Firewall didn't do the trick, I tried disabling access to the NAS IP with allowing that Application, yet it didn't work.

Web access I was referring to normal windows explorer navigation to the shares.. my bad
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 - 64bit
Having the backup program in each computer has certain security implications, but it's possible to deal with those. Yes, accesing with Windows Explorer implies standard SMB shares, but if it's a NAS it's quite unlikely to be an underlying NTFS filesystem there, as they run Linux almost always.
Have a look at what access permission the NAS allows to setup, no idea what it's even possible exactly in your case, but it should be possible to configure them correctly.

I insist in that permission to change files is the wrong way to go. For one, permission to modify implies that the user can, instead of delete, just empty the file, or change it in arbitrary ways, which still destroy the backup value.
Moreover, replacing each document on each backup makes the backup itself vulnerable to accidents. Suppose that a virus destroys the file on client machine, or the user makes a mistake he wants to revert, by overwriting the file you lose the original without chances to revert to the old, safe version. That's called a "mirror backup" and is of little value against some incidents.

A better aproach could be to give users only create file access to the shared backup location. The backup program creates a new file each day for each document (named after the data for example), so you only need read and create access (not delete nor modify) and gives you the last days worth of copies, in case of an incident you can go back further is need arrises. A scheduled tasks could purge the oldest ones to preserve disk space.

Firewall are no good here. They can block access to the server completely or allow it, but have nothing to do with what is done there exactly.

Have a look at the NAS configuration panel, look for what file access restrictions it supports exactly.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top