Bug 512227 - Dolphin always claims write access for everyone is needed on SMB-shared directories
Summary: Dolphin always claims write access for everyone is needed on SMB-shared direc...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-17 00:23 UTC by villeneuve
Modified: 2025-11-17 00:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description villeneuve 2025-11-17 00:23:13 UTC
SUMMARY
Hello KDE-Team!
This issue is pretty old, but I decided to report it now, since nobody else seems to have according to my search.
When creating SMB-shares with Dolphin it works fine and exactly how you've set it up in terms of access rights but when you open the properties dialog of a share again & go to the "Share" tab Dolphin shows the message "This folder needs extra permissions for sharing to work" and next to it a button "Fix Permissions". When you click on it it shows the current permissions and how it wants to change them which is always setting it to 0777, so it always wants to give others write access to that directory.

STEPS TO REPRODUCE
1. open properties of a directory
2. go to the "Share"-tab
3.  enable "Share this foler..."
4. leave "Allow guests" disable as per default
5. set the permission to:
"Everyone ---" or "Everyone Read Only" (unclear to user, what the difference is btw, Dolphin should explain!)
"your user Full Control" 
6. click ok
7. Filesharing works as expected
8. open properties of that shared directory again
9. go to the "Share" tab
10. Dolphin shows message "This folder needs extra permissions for sharing to work" and next to it a button "Fix Permissions".
11. click on "Fix Permissions" 
12. look at what Dolphin wants to do

OBSERVED RESULT
Dolphin always wants to set permissions to 0777, despite that the options the user has set on the "Share"-tab don't need giving write access to everyone.

EXPECTED RESULT
Only show the message "This folder needs extra permissions for sharing to work" when the current permissions of that shared directory aren't permissive enough to fulfill the wishes the user has set on the "Share"-tab and when clicking on "Fix Permissions" Dolphin then should always propose to set just the most restrictive permissions needed to fulfill what the user has set on the "Share"-tab. *And* all that needs to happen already at the time the user creates that share in the first place and not only after re-entering the directory properties!

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon User Edition
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0 
Qt Version: 6.9.3