3

I am trying to delete a folder that I imported from a MacOS device using SMB, but I have not yet found a way to delete it. I tried using the Nautilus utility to gain permissions to delete the folder, but it did not work. I also obtain the same results when trying to restore the folder. The error occurs even when elevating the account, The folder is quite small in size, 1 GB approximately.

Any ideas?

Error message:

You do not have sufficient permissions to delete

Zanna
  • 72,312

3 Answers3

1

You always have the permission to do anything on Linux (Ubuntu in this case). Whenever you are prompted with

You don't have sufficient permission

always use sudo. Except when you are not a sudo user, in which case you can't do anything.

Use the terminal to gain sudo access.

  1. Open trash by typing cd .local/share/Trash in terminal.
  2. Type sudo rm -rf * sudo gives you the permission, rm is the command to remove and -rf is the force remove flag, and * means everything. i.e., it will empty you trash.
  3. If you want to delete a particular file then instead of step 2 type sudo rm -rf FileName which in your case FileName is 'Videos Edit'.
zx485
  • 2,865
Abhay Patil
  • 2,793
0

Try to do it with root permissions:

  1. Open terminal window (ctrl + alt + t)
  2. Type sudo rm -rf /.local/share/Trash/* fro remove all Trash content with root permissions
0

I had a similiar issue before, if you deleted the file from an USB stick or an SSD you might see it on the nautilus Trash but in reality it's stored in another directory:

  1. Open terminal window (Ctrl + Alt + T)
  2. Navigate to the USB mount point (usually /media/[user]/[USBName])
  3. Check if a trash directory exists and if it does navigate to it (you can check using ls -la, the default name is .Trash-1000)
  4. Finally delete all of the files using sudo rm -rf * or if you want to only delete some using sudo rm -rf [filename]

Hope this helps even thought the post it's pretty old.