Access Denied error when I try to delete files in Dolphin

Fedora 43 with KDE Plasma 6.6.3

Sometimes when I try to delete a file, I get “Access denied to home/[user]/[file path]/filename.”

However, if I create a new folder and move the file to that folder, I can delete the folder with the file in it.

It doesn’t do it with all files. I’ve tried to replicate the error, but right now it seems rather random. Sometimes it happens with files that I pull from another drive, sometimes with files that I download; often with neither one. It doesn’t happen often enough that I’ve been able to make any sense out of it.

If I delete the file from within the terminal, it deletes just fine without any errors.

I checked ownership of the trash and the various directories and didn’t see any issues. My guess is that this is a bug in Dolphin. I can’t manually replicate the error, it just happens randomly.

My installation is about one week or so old; this has been happening since I first installed Fedora. I replaced Fedora with Ubuntu and copied all my files over from an internal HDD that I use for backups. But this has also happened with files that I’ve downloaded since installing Fedora. Again, there doesn’t seem to be much rhyme or reason to this.

Just be aware that not the Username in Linux is relevant it is the ID behind it. If you had the same user on a other Linux installation, and the user ID was different, it will give you no access. Just to keep this in mind.

You might also ask in the KDE forum about the Dolphin question for that error.

Are you deleting as your user only or with sudo in the terminal?

When this happens again check ther permission from a terminal using ls -l and try to delete the file with rm do you see the same error?

I prefer stat it gives details like this:

Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)

I was deleting without sudo (if I remember correctly - it’s been several days since I did that).

To @barryascott and @ilikelinux - thanks for the tips. I’ll give those things a try next time it happens. I will mention when I ran a prompt last time (I can’t remember exactly what I typed) it showed my user name next to Uid and Gid.