How to Empty Trash if files in there are owned by Root?
kip at kdream.com
Tue Oct 21 03:06:16 UTC 2008
On Thu, 2008-10-16 at 15:22 -0700, NoOp wrote:
> On 10/16/2008 02:44 PM, Kipton Moravec wrote:
> > I was running out of disk space and discovered I had a bunch of files in
> > Trash.
> > So I tried to empty trash and found there were a number of files in
> > there that were owned by root, because of a screw-up I did when I
> > installed a program a while back.
> > There are other files that are owned by me that will not delete because
> > they have the wrong permissions, but it will not let me change the
> > permissions.
> >>From the GUI I do not know how to remove them.
> > I did a search on the name to see if I could find the path to the Trash
> > directory and these files did not show up.
> > What do I do?
> >From a terminal:
> sudo rm -rf ~/.local/share/Trash/files/*
I screwed up something and typed something wrong.
Here is the directory under ~/.local/share
kip at red:~ $ cd .local
kip at red:~/.local $ cd share
kip at red:~/.local/share $ ls -l
drwxr-xr-x 3 kip users 1248 2008-10-06 09:27 applications
drwxr-xr-x 2 kip users 88 2006-03-26 17:58 desktop-directories
drwxr-xr-x 3 kip kip 72 2008-10-02 19:10 icons
drwxr-xr-x 4 kip kip 272 2008-10-04 20:07 mime
drwxr-xr-x 3 kip users 104 2008-10-15 13:32 tracker
drwxr-xr-x 3 kip kip 128 2008-10-17 15:45 Trash
kip at red:~/.local/share $ cd Trash
kip at red:~/.local/share/Trash $ ls -l
drwxr-xr-x 2 kip kip 48 2008-10-17 15:45 files
-rw-r--r-- 1 kip kip 72499 2008-10-16 17:29 Screenshot-Trash-File
kip at red:~/.local/share/Trash $ cd files
kip at red:~/.local/share/Trash/files $ ls -l
kip at red:~/.local/share/Trash/files $
However if I am in the Gnome Desktop and look at the Trash icon
It says I have 5 directories in trash:
If I try to delete them from Trash it says permission denied.
I am the owner, and the permissions are drwxrwxrwx
What is wrong? I tried to delete them last week using the command line
and did it wrong. Not sure what I did, but I deleted the Trash and files
sub directories and something else probably.
What should be the directory structure under ~/.local/share/?
Is there an easy way to fix this?
Kipton Moravec AE5IB
"Always do right; this will gratify some people and astonish the rest."
More information about the ubuntu-users