Today I decided to empty my trash and ran into the following error:



It turns out that there are some files with only root permissions in my trash:

bleonard@opensolaris:~/.Trash/OOo_2 (copy).4.1_Solarisx86_install_wJRE_en-US$ ls -l
total 25
drwxr-xr-x  2 bleonard staff     4 2008-05-29 15:40 licenses
drwxr-xr-x  3 root     root      5 2008-06-25 09:28 none
drwxr-xr-x 31 bleonard staff    31 2008-05-29 15:40 packages
-rwxr-xr-x  1 bleonard staff 13829 2008-05-29 15:40 setup
-rwxr-xr-x  1 bleonard staff  3925 2008-05-29 15:40 update
bleonard@opensolaris:~/.Trash/OOo_2 (copy).4.1_Solarisx86_install_wJRE_en-US$ ⁞

I'm not exactly sure how this came to be, but the problem is easy enough to fix if you find yourself in the same predicament. Simply open a terminal, which will place you in your home directory, and enter:

pfexec rm -r .Trash

There's no need to recreate the .Trash directory. It will be recreated the next time you move something to the Trash.

Comments:

Note that in more recent builds of OpenSolaris, the trash folder has moved to ~/.local/share/Trash, per the freedesktop.org Trash spec.

(Technically, it's $XDG_DATA_HOME/Trash, in fact.)

Posted by Calum on September 26, 2008 at 05:06 PM GMT #

Moving files to the trash seems so windozy. When I want to delete something, i just use 'rm'

Maybe I am weird.

Posted by Joseph Sniderman on December 26, 2008 at 01:41 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by Roman Strobl