| Summary: | Permissions issue with trash files | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Thiago Sueto <herzenschein> |
| Component: | Trash | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | kdelibs-bugs-null, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Thiago Sueto
2021-12-06 00:33:30 UTC
If you move that file outside of the trash, can you delete it or rm it? (In reply to Nate Graham from comment #1) > If you move that file outside of the trash, can you delete it or rm it? I can't move it without sudo. By the way, after facing this issue again, I noticed some unexpected behavior. If I build a project with cmake -B build -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D CMAKE_GENERATOR=Ninja and then install it directly on my system (sudo cmake --install build/ or sudo ninja install), the build folder gets the following permissions: dr-xr-xr-x which isn't removable without sudo (there are no write permissions). But somehow Dolphin manages to move the folder to /run/user/1000/kio-fuse-bnoNSf/trash if I delete it. So what happens is: the user shouldn't be able to delete these files in the first place, yet Dolphin manages to send them to the trash. Try it by building e.g. sddm_kcm exactly as I listed above and you should be able to reproduce it. (Sorry, forgot to mention: if you're building with cmake, you need `cmake --build build` too before the --install command) |