Bug 484504 - Folder is read-only on SMB mounted share when DOS-attribute is set
Summary: Folder is read-only on SMB mounted share when DOS-attribute is set
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-26 07:02 UTC by Sergey Sysoev
Modified: 2024-03-26 07:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (60.12 KB, image/png)
2024-03-26 07:02 UTC, Sergey Sysoev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Sysoev 2024-03-26 07:02:58 UTC
Created attachment 167779 [details]
screenshot

SUMMARY
Regular MS Windows folders like Desktop, Downloads, Documents on have DOS-attribute READ-ONLY, which has the special meaning, but doesn't mean, that folder is available for read only (you could see that in KB: https://support.microsoft.com/en-us/kb/326549).

The issue is when users' Windows home folder is mounted in Linux via SMB from remote Windows Server (maybe remote Linux could be to, that was not tested).

As folders from mounted share like Desktop have READ-ONLY attribute, you *CANNOT* create/copy/delete folders or files in these folders in Dolphin -- see the screenshot: on the left folder test1 HAS read-only attribute, on the right folder test2 HASN'T read-only attribute.

At the same time you *CAN* do any read-write operations in these READ-ONLY mounted folders by any other apps, like BASH, or Midnight Commander.

Via smbclient you could see the difference between folders:
smbclient -U sysoevsa '\server.domain\homefolders\sysoevsa'
Password for [DOMAIN\sysoevsa]:
smb: \sysoevsa\> ls
test1 DR 0 Thu Mar 7 10:30:43 2024
test2 D 0 Wed Mar 6 15:19:09 2024

test1 - DR - directory, read only
test2 - D - directory

STEPS TO REPRODUCE
1. Create folder in Windows, set DOS-attribute READ-ONLY -- or use existed regular folders like Desktop, Documents, Downloads
2. Mount SMB share with this folder with READ-ONLY attribute
3. Try to create folder

OBSERVED RESULT
Cannot create or copy folders or files (look at the left part of the screenshot)

EXPECTED RESULT
Could create or copy folders or files (look at the right part of the screenshot)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ALT Workstation K 10.3 / KDE 
(available in About System)
KDE Plasma Version: 23.08.4
KDE Frameworks Version: 5.113
Qt Version: 5.15.11

ADDITIONAL INFORMATION
There were some similar bugs:
https://bugs.kde.org/show_bug.cgi?id=370430
https://bugs.kde.org/show_bug.cgi?id=376344
https://bugs.kde.org/show_bug.cgi?id=414482