https://bugs.kde.org/show_bug.cgi?id=509191
Bug ID: 509191
Summary: Can't write or paste to some folders even when running
as root [PATCH attached]
Classification: Frameworks and Libraries
Product: frameworks-kio
Version First 6.17.0
Reported In:
Platform: NixOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 184766
--> https://bugs.kde.org/attachment.cgi?id=184766&action=edit
fix root permissions check patch
[details and patch at the bottom]
When running dolphin as root it performs read/write checks as if it were a
normal user often blocking moving to user folders which don't have .
STEPS TO REPRODUCE
1. run as root
2. in a console do: mkdir test; chown user test; chmod go-rwx test
note: replace user with whatever username you have available
3. open dolphin
note: doing step 2 from inside dolphin doesn't trigger the issue!
4. try to copy/paste some file into folder test
OBSERVED RESULT
5. dolphin refuses to paste showing a red "Cannot paste: You do not have
permission to write into this folder." message
EXPECTED RESULT
5. dolphin should allow pasting
Dolphin: 25.08.0
KDE Frameworks: 6.17.0
Qt: Using 6.9.1 and built against 6.9.1
NixOS 25.11 (Xantusia) (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.16.1
DETAILS and PATCH
>From what I've found the issue is with KFileItem::isReadable() & isWritable().
I made a simple patch that first checks if KUserId::currentUserId().nativeId()
== 0 and returns true.
Verified the patch fixes the problem.
Note I don't work much with kde/plasma/qt code so there could be better ways to
fix this.
--
You are receiving this mail because:
You are watching all bug changes.