SMB3 POSIX and deleting files with FILE_ATTRIBUTE_READONLY
Ralph Boehme
slow at samba.org
Wed Apr 9 19:06:58 UTC 2025
On 4/9/25 8:43 PM, Steve French wrote:
> On Wed, Apr 9, 2025 at 1:18 PM Ralph Boehme <slow at samba.org> wrote:
>> what should be the behavior with SMB3 POSIX when a POSIX client tries to
>> delete a file that has FILE_ATTRIBUTE_READONLY set?
>>
>> The major question that we must answer is, if this we would want to
>> allow for POSIX clients to ignore this in some way: either completely
>> ignore it on POSIX handles or first check if the handle has requested
>> and been granted WRITE_ATTRIBUTES access.
>
> I agree that to delete a file with READ_ONLY set should by default require
> WRITE_ATTRIBUTES (and delete)
delete will be checked the usual way, so nothing special there.
> permission (better to be safe
> in restricting a potential dangerous operation).
yes, that was my thought as well.
>
> But this is a good question ...
That's why I brought it up :)))
Thanks!
-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250409/3d590383/OpenPGP_signature.sig>
More information about the samba-technical
mailing list