1

I just installed Ubuntu 16.04 LTS on my notebook (ASUS ZenBook UX303U). Whenever I try to "Move to Trash" a file it appears a window asking «“MyFile” can't be put in the trash. Do you want to delete it immediately?».

Consider I already used Ubuntu 16.04 LTS for long in another partition of the same notebook, and it gave me no such problem.

I feel like it can be a permission problem, but I don't really know how to fix this!

Robb1
  • 205
  • 1
  • 4
  • 11

1 Answers1

4

The directory you need to look at is ~/.local/share/Trash.

You should be the owner of this directory and everything in it. If not, do sudo chown -R username:username ~/.local/share/Trash.

Its permissions, and those of all the directories in it, should be drwx------. If it isn't, do chmod -R 700 ~/.local/share/Trash.

Jos
  • 28,156
  • 8
  • 82
  • 88
  • After using `chmod -R 700 ~/.local/share/Trash` I moved with `cd` to `~/.local/share` with no problems. Then trying to access `Trash` I receive such a error: `bash: cd: Trash/: Permission denied`. Should I try with `777` instead? Or is it dangerous? – Robb1 Sep 26 '16 at 10:25
  • with `ls -l` inside `~/.local/share` I noticed that the folder `Trash` is the only one not owned by my user, but by the `root`! Here's what I see: `drwx------ 4 root root 4096 set 25 15:00 Trash` – Robb1 Sep 26 '16 at 10:28
  • Added the command to correct that. – Jos Sep 26 '16 at 10:34