https://bugs.kde.org/show_bug.cgi?id=448926

--- Comment #4 from guimarcalsi...@gmail.com ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to