Incorrect permissions on files in Trash on NAS

Thomas D sdktda at gmail.com
Tue Aug 29 15:05:55 BST 2023


NAS is Debian Linux. DK Clients are on windows 10, macOS and kde on Debian.
I only noticed this on dk on windows. But I have not checked on the other
clients.



tir. 29. aug. 2023 kl. 15.25 skrev Gilles Caulier <caulier.gilles at gmail.com
>:

> Hi,
>
> It sounds like a missing code in Trash Manager to restore the file
> right properties.
>
>
> https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dtrash/dtrash.cpp?ref_type=heads#L91
>
> In the code we simply use QFile::rename to process file move on the media.
>
> https://doc.qt.io/qt-6/qfile.html#rename-1
>
> Which operating system did you use exactly to run digiKam ?
>
> Best
> Gilles Caulier
>
> Le mar. 29 août 2023 à 14:23, Thomas <sdktda at gmail.com> a écrit :
> >
> > Hi,
> >
> >
> > When using DK on albums stored on a NAS (via Samba), I see a strange
> > behavior with deleted files.
> >
> > Deleted files are moved to the .dtrash folder. But here, they are given
> > incorrect permissions/owership.
> >
> > Example:
> >
> > I delete a file in an album with permissions 0660 (rw-rw----)
> >
> > The following file will then be created:
> >
> > .dtrash/info/img_e8766-8cfbd914.dtrashinfo'  0744 (rwxr--r--)
> >
> >
> > This causes subsequent operations to fail as other users accessing the
> > NAS share the same group and thus utilize the gorup writable feature.
> >
> >
> > Permissions on the .dtrash folder itself is: drwxrws---
> >
> >
> >
> > --
> > Mvh
> > Thomas
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20230829/e5d351ab/attachment.htm>


More information about the Digikam-users mailing list