| Summary: |
Can't write or paste to some folders even when running as root [PATCH attached] |
| Product: |
[Frameworks and Libraries] frameworks-kio
|
Reporter: |
Tomasz Borowik <timon37> |
| Component: |
general | Assignee: |
KIO Bugs <kio-bugs-null> |
| Status: |
ASSIGNED
---
|
|
|
| Severity: |
normal
|
CC: |
kdelibs-bugs-null, nate
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
6.17.0 | |
|
| Target Milestone: |
--- | |
|
| Platform: |
NixOS | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
|
Version Fixed/Implemented In:
|
|
|
Sentry Crash Report:
|
|
| |
| Attachments: |
fix root permissions check patch
|
Created attachment 184766 [details] 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.