<div dir="auto">NAS is Debian Linux. DK Clients are on windows 10, macOS and kde on Debian. </div><div dir="auto">I only noticed this on dk on windows. But I have not checked on the other clients. </div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">tir. 29. aug. 2023 kl. 15.25 skrev Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
It sounds like a missing code in Trash Manager to restore the file<br>
right properties.<br>
<br>
<a href="https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dtrash/dtrash.cpp?ref_type=heads#L91" rel="noreferrer" target="_blank">https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dtrash/dtrash.cpp?ref_type=heads#L91</a><br>
<br>
In the code we simply use QFile::rename to process file move on the media.<br>
<br>
<a href="https://doc.qt.io/qt-6/qfile.html#rename-1" rel="noreferrer" target="_blank">https://doc.qt.io/qt-6/qfile.html#rename-1</a><br>
<br>
Which operating system did you use exactly to run digiKam ?<br>
<br>
Best<br>
Gilles Caulier<br>
<br>
Le mar. 29 août 2023 à 14:23, Thomas <<a href="mailto:sdktda@gmail.com" target="_blank">sdktda@gmail.com</a>> a écrit :<br>
><br>
> Hi,<br>
><br>
><br>
> When using DK on albums stored on a NAS (via Samba), I see a strange<br>
> behavior with deleted files.<br>
><br>
> Deleted files are moved to the .dtrash folder. But here, they are given<br>
> incorrect permissions/owership.<br>
><br>
> Example:<br>
><br>
> I delete a file in an album with permissions 0660 (rw-rw----)<br>
><br>
> The following file will then be created:<br>
><br>
> .dtrash/info/img_e8766-8cfbd914.dtrashinfo' 0744 (rwxr--r--)<br>
><br>
><br>
> This causes subsequent operations to fail as other users accessing the<br>
> NAS share the same group and thus utilize the gorup writable feature.<br>
><br>
><br>
> Permissions on the .dtrash folder itself is: drwxrws---<br>
><br>
><br>
><br>
> --<br>
> Mvh<br>
> Thomas<br>
><br>
</blockquote></div></div>