[Samba] Restricting users from deleting files.

Norbert Hanke norbert.hanke at gmx.ch
Sat Jun 14 09:25:12 UTC 2025


On top, the owner of a file can always change the ACL of that file and 
restore deletion ability.

On 13.06.2025 19:32, Robert Marcano via samba wrote:
> On 6/11/25 5:12 PM, I T via samba wrote:
>> Hello,
>>
>> Is it possible to create permissions/ACL to keep a user from deleting
>> files/folders, while maintaining all other attributes?
>
> The Windows advanced ACL dialog window has a combo box for restricting 
> permissions if you want to do it easily. IIRC denying permissions take 
> priority over granting them.
>
> Note: I find unpractical to restrict only delete permissions and 
> granting everything else. Nearly all editing software create temporary 
> files and use a rename to replace the old file, this guarantee the old 
> file isn't lost if the file save operation fails. The old file 
> replaced by the rename is deleted and if you don't have permissions to 
> delete, you will not be able to edit files either.
>
> In other example, users may not be able to delete files but they can 
> still truncate them to zero.
>
>
> > > Kind regards,
>>
>>
>> *Mike Soliven*
>> *IT Manager*
>> Winnipeg, Manitoba, Canada R2X 2Y1
>> 204.697.3338 Ext.1235
>> www.embassygraphics.com
>>
>>
>> CONFIDENTIALITY NOTICE: This electronic transmission and any 
>> attachment are
>> the confidential property of the sender, and the materials are 
>> privileged
>> communications intended solely for the receipt, use, benefit, and
>> information of the intended recipient indicated above. If you are not 
>> the
>> intended recipient, you are hereby notified that any review, disclosure,
>> copying, distribution, or the taking of any action in reliance on the
>> contents of this electronic transmission is strictly prohibited, and may
>> result in legal liability on your part. If you have received this 
>> email in
>> error, please forward back to sender and destroy the electronic
>> transmission.
>
>



More information about the samba mailing list