Is there any way to move items to trash without having permission denied

I know you can use command lines like sudo rm but its really tedious for me and I way prefer being able to just move things to trash. Is there anyway to do this? Thank you

Hello and welcome to the openSUSE forums.

I am afraid that you have to explain much more about what you are doing exactly. When I, using my Desktop Environment, delete a file, it is moved to Trash without any problem and I assume this is working for most users. Thus you have something special and we will try to help you to find out what. But as things seem to be different at yours, we need facts. Like

  • What Desktop Environment are you using (Gnome, KDE, XFCE, …)?
  • What are you exactly doing, like which file and how to remove using what.

The background of this is that we are not not mind readers, nor can we look over your shoulder.

1 Like

The files is in my hard-drive folder and its in the lib64 folder and other folders in that hard-drive. I think i’m on a normal account not a root user

Files in the „lib64“ folder (as you call it), are owned by root and can only be deleted with root permissions.

This is the default and prevents users from deleting random files.

You still did not answer the questions, such as:
“what Desktop Environment you are using?”.

  1. You should mention if you’re using the command line or a graphical file tool to remove files
  2. You don’t know for sure if you are logged in as root user, or a regular user account?
    If you did successfully delete files in the lib64 subdir, you were running as the root user.

oh thank you, do you know how I can get root permissions?

As you should NEVER run a full graphical session as root, you need to perform some file operations in a terminal. There is no other recommended way.

To delete a file which is owned by another user or root you need to elevate your rights. This can be done via sudo or real su -

To delete such a file you can perform following command (you need to adapt the file path):
sudo rm /path/to/file/to/delete

To delete a complete directory with content you can perform following command (you need to adapt the directory path):
sudo rm -rf /path/to/directory

1 Like

I really dont wanna do command its very tedious for me. What would happen if I ran as root user? Thnk you

@bob32 the question really is why are you having to do this? Files your dropping into random directories?

If you not sure just create you own trash folder and use the mv command instead?

You would make irrecoverable mistakes.

The KDE file manager Dolphin used to have a “start in superuser mode”: isn’t that still available?
(As the OP refuses to write what desktop is in use, I don’t know if this is relevant)

These files are managed by the package manager, and should not be deleted using any other tool, otherwise you’ll very likely end up with a broken system - especially if you don’t know what you’re doing and just start randomly deleting things.

What is the goal you’re attempting to accomplish by deleting files from these directories?

Im in leap 15.6

For:

  1. It’s still there (it’s not a left-click on Dolphin icon option). Click the KDE Application menu (or Launcher, etc) icon, then select System section … in the submenu you will see “Dolphin” and also “File Manager - Super User Mode”
  2. Yea, a bit strange the OP has been asked questions more than once, and won’t answer.

“Leap 15.6” is not the Desktop Environment.

I looked it up im in KDE Plasma 5, I think. Thnk you

No im trying to uninstall something but its located in root locked folder I think, thnk you

You are doing it very very wrong, and I am almost looking forward to the follow up where you ask how to fix your screwed up system.

Then uninstall it with the same tool with you used to install it!

What are you trying to uninstall, and how did you install it?

However you installed it, it’s likely there’s an “uninstall” procedure. That’s how you should be removing it.

If there isn’t, you should probably ask whomever provided you with the package if it wasn’t installed with zypper, yast, or flatpak.

We can certainly help you, but we can’t see your system or see what you’ve done or are trying to do. The more details you can provide, the better help you’ll receive.