| Summary: | Delete options are not grayed out when a root-owned folder is in /home/user/ | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | guimarcalsilva |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | a.samirh78, kdelibs-bugs-null, nate, uhhadd |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
guimarcalsilva
2022-01-21 21:20:23 UTC
Huh, works for me in Dolphin. (In reply to Nate Graham from comment #1) > Huh, works for me in Dolphin. Weird. I tried making a new user to see if it would change anything but the same happened. Is there any kind of log or something I can send to help diagnose the issue? What is the output of this in terminal: ls -l /home/guilherme/.local/share/Trash/files/Text File.txt ls -ld /home/guilherme/.local/share/Trash/files/ Hey. Sorry. I completely missed Ahmad's comment here and I only found this again because I was going through my reported bugs. I don't remember why when I reported this I was able to select 'Move to trash' for a file in a root-owned folder. Now I have a new fresh install of Neon User Edition 5.27.6 and, as expected, the option is grayed out on the context menu for files inside a root folder. However, the context menu still shows 'Move to trash' for root-owned folders in my home directory, so that's not fixed. I also cannot shift-delete as I said I could in the original post. It's obvious that Dolphin shouldn't be able to delete root-owned folders without a password. What is buggy here is the fact the option to move the folder to the trash is not grayed out as it is everywhere else. This bug only seems to apply to a root folder in the home directory. System folders in / have the option to move to the trash grayed out as expected, and files and other folders inside that problematic folder also have the delete options grayed out. I'll write detailed instructions: 1. Open a terminal in your >home< (very important!) directory 2. Type sudo mkdir ./myfolder 3. Go to Dolphin or Konqueror and right-click the folder Result: The option 'Move to trash' is available. If I try to move the folder to the trash, it says: Access denied to /home/guilherme/.local/share/Trash/files/myfolder As Ahmad asked, ls -ld /home/guilherme/.local/share/Trash/files/myfolder shows : ls: cannot access '/home/guilherme/.local/share/Trash/files/myfolder': No such file or directory As expected, the folder doesn't exist because it wasn't moved to the trash due to the lack of permissions. The folder I'm trying to delete does exist though: drwxr-xr-x 2 root root 4096 jul 5 19:55 /home/guilherme/myfolder |