Right now there is a folder called 'Pasta sem nome' (which translates to untitled folder) in trash. When I try to delete it or move it I get a message saying I don't have enough permissions. The owner of Trash is me and not root so the commands

sudo chown -R "$USER" ~/.local/share/Trash
sudo rm -rf ~/.local/share/Trash/*

dont work.

Can't find the answer elsewhere. Any suggestions?

EDIT: Can't test answers until 23/11. Sorry for wasting your time. Please don't close this answer.

  • What is the output of ls -ld Trash? Are you having write permissions for Trash folder? – Prvt_Yadav Nov 18 '18 at 19:22

See what:

lsof | grep Pasta

says. It looks to me like some process still has a grip on the file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.