Can you make a user unable to delete?

mike6623

New member
Member
VIP
Local time
12:06 PM
Messages
255
Is there a way to set permissions so that the user can read, write, execute, move, etc, all of that and NOT be able to delete? If so, how?
 

My Computer My Computer

At a glance

Windows 8 Pro8gb
Computer Manufacturer/Model Number
HP
OS
Windows 8 Pro
Memory
8gb
Monitor(s) Displays
23 inch Acer
As far as I know, no. The ability to delete comes with the permission to write so the only way to prevent a user from deleting would be to only give read permission.
 

My Computer My Computer

At a glance

W10 Pro desktop, W11 laptop, W11 Pro tablet (...3.7Ghz 8700K i7, i7-11800H, i7-1065G716G desktop, 16G laptop, 4G tabletAMD Radeon RX580, RTX 3060, Intel Iris Plus
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built desktop, Dell G15 5511 Gaming laptop,MS Surface Pro 7 tablet
OS
W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
CPU
3.7Ghz 8700K i7, i7-11800H, i7-1065G7
Motherboard
ASUS TUF Z370-Pro Gaming in desktop
Memory
16G desktop, 16G laptop, 4G tablet
Graphics Card(s)
AMD Radeon RX580, RTX 3060, Intel Iris Plus
Sound Card
High Definition Audio (Built-in to mobo)
Monitor(s) Displays
Samsung U32J59 32" (2x), 15.6", 12"
Screen Resolution
3840x2160, 3840x2160, 1920x1080, 2160x1440
Hard Drives
500G SSD for OS; 2T, 10T & 15T HDDs for Data on Desktop, 1TB SSD laptop, 128G SSD tablet.
PSU
Corsair CX 750M
Case
Antec 100
Cooling
CM 212+
Keyboard
IBM Model M - used continuously since 1986
Mouse
Microsoft Pro IntelliMouse
Internet Speed
400M down 8M up
Antivirus
Windows Defender
Browser
FireFox
Other Info
Built my first computer (8Mhz 8088cpu, 640K RAM, 20MB HDD, 2 360K floppy drives) in 1985 and have been building them for myself, relatives and friends ever since.
An easy way to limit the user may be to enable the Guest account and make the person use that. As soon as they log off all changes are erased. Any data they want to save has to be written to their USB stick like using the Public Library PCs.

Of course they might not like you much afterwards. :)
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
To some extent it can be done for any file or folder you want to protect, but with a few caveats.
Move is fundamentally a copy + deleting the original, so if you deny delete automatically deny move (but can still copy).
Writing to a file and modifying it can be nearly equal to deleting. If a user is able to modify a file, he can always remove the whole content, leaving a 0 bytes file. Technically not deleted, but still useless in practice.

In file properties, go to security tab, then advanced options, then open the user in the list and modify its permissions. Just deny the "delete" option in the list below.
Of course, the user should not be administrator, or have ownership or full control over that file, otherwise he can just lift the block himself.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
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)
As far as I know, no. The ability to delete comes with the permission to write so the only way to prevent a user from deleting would be to only give read permission.
Untrue. While slightly complex, NTFS permissions allow for implementing some the most precise access rules any OS out there has to offer.

Move is fundamentally a copy + deleting the original, so if you deny delete automatically you deny move (but can still copy).
Tested and approved. If you can't delete a file, it's safe to say you can't move it either.

Writing to a file and modifying it can be nearly equal to deleting. If a user is able to modify a file, he can always remove the whole content, leaving a 0 bytes file. Technically not deleted, but still useless in practice.
Agreed. If you can write to a file, you virtually have the ability to delete it by erasing the file’s content. A file with Delete permissions denied but lacking Write deny is something you’d rarely find.

What's the point in a user being denied only delete permissions to a file if they can overwrite it?

In file properties, go to security tab, then advanced options, then open the user in the list and modify its permissions. Just deny the "delete" option in the list below.
Just denying the Delete permission on a file is not enough to prevent a user from deleting the file. For the Delete permission to become effective, two permission changes must be done: along with denying the Delete permission on the file, the file’s parent folder must also have the Delete Subfolders and Files permission denied.

Denying a user from deleting an item requires one to change a permission on that item as well as a permission on a folder above it. I’m not entirely sure why the NTFS Delete permission is unintuitive like this, but my understanding is that a delete operation is an operation performed on a folder, not the actual file.
 
Last edited:

My Computer My Computer

At a glance

Windows 10, Windows 8.1 Pro, Windows 7 Profes...
Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top