How to Empty Trash if files in there are owned by Root?

Kipton Moravec kip at kdream.com
Tue Oct 21 15:56:41 UTC 2008


On Tue, 2008-10-21 at 17:23 +0200, Nils Kassube wrote:
> Kipton Moravec wrote:
> > After some more playing looking at the Trash in Gnome, I found the
> > directories had a subdirectory called src and src had a hidden
> > directory called .dep which is owned by root. The permissions are
> > drwxr-xr-x. Since it is owned by root I do not know how to delete it
> > from Gnome, and I can not find it with the terminal or search.
> 
> So if I understand it correctly you have a directory 
> ~/.local/share/Trash/src/.dep which is owned by root and you want to 
> delete it. You can change the ownership with the command
> 
> sudo chown -R $USER: ~/.local/share/Trash/src/.dep
> 
> or if you want to immediately delete it you can do that with this command:
> 
> sudo rm -r ~/.local/share/Trash/src/.dep
> 
> And how did you try to find the directory with the terminal? If you use 
> the ls command you need the -A (or -a) option to show hidden files.
> 
> 
> Nils
> 

I guess I am not making my self clear. One more try.
Looking in Gnome the Trash says there are 5 directories

Specifically:
geda-gattrib-1.4.1
geda-gnetlist-1.4.1
gedaq-gschem-1.4.1
geda-gsymcheck-1.4.1
geda-utils-1.4.1

I can not delete them because there is a directory under these
directories that is owned by root. The obvious answer is to go into the
directory and do what you say.

Looking in my terminal I should be able to find these 5 not hidden
directories.

kip at red:~/.local/share $ ls -l -a
total 1
drwxr-xr-x 9 kip users  240 2008-10-21 07:01 .
drwxr-xr-x 3 kip users   72 2005-11-04 19:39 ..
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 2 kip kip     48 2008-10-21 07:01 local
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 4 kip kip    152 2008-10-21 09:11 Trash
kip at red:~/.local/share $ cd Trash
kip at red:~/.local/share/Trash $ ls -l -a
total 72
drwxr-xr-x 4 kip kip     152 2008-10-21 09:11 .
drwxr-xr-x 9 kip users   240 2008-10-21 07:01 ..
drwxr-xr-x 2 kip kip      48 2008-10-21 09:16 files
drwx------ 2 kip kip      48 2008-10-21 09:16 info
-rw-r--r-- 1 kip kip   72499 2008-10-16 17:29 Screenshot-Trash-File
Browser.png
kip at red:~/.local/share/Trash $ cd files
kip at red:~/.local/share/Trash/files $ ls -l -a
total 0
drwxr-xr-x 2 kip kip  48 2008-10-21 09:16 .
drwxr-xr-x 4 kip kip 152 2008-10-21 09:11 ..
kip at red:~/.local/share/Trash/files $ 

So how do I find these directories so I can delete them?

Kip




-- 
Kipton Moravec AE5IB
"Always do right; this will gratify some people and astonish the rest."
--Mark Twain






More information about the ubuntu-users mailing list