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

Kipton Moravec kip at kdream.com
Tue Oct 21 16:50:42 UTC 2008


On Tue, 2008-10-21 at 09:19 -0700, NoOp wrote:
> On 10/21/2008 07:31 AM, Kipton Moravec wrote:
> [snip]
> >> 
> >> I open up the trash folder in Gnome and when I try to cut and paste to
> >> another directory I get permission denied.
> >> 
> >> I can not delete them in the Gnome Trash folder, again permission
> >> denied.
> >> 
> >> I can not see them in the ~/.local/share/Trash/files folder. It is
> >> empty.
> >> 
> >> What to do?
> >> 
> >> Kip
> > 
> > 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.
> > 
> > One of the files in the trash folder
> > geda-gnetlist-1.4.1/src/.deps/globals.Po
> > So I search, using Places->Search for Files menu item, for globals.Po in
> > my home directory and in the file system and there is no match.
> > 
> > Kip
> 
> OK, let's take a different approach. From the terminal:
> 
> gksu nautilus
> 
> That puts you in superuser mode, so be _very_ careful of what you delete
> or move.
> 
> First set the root nautilus so that you can see the hidden files and
> delete files: Edit|Preferences| click "Show hidden and backup files
> |Behavior| click "Include a Delete command that bypasses Trash|Close
> 
> Now navigate to your home folder (not root's) under the home directory:
> File System|home|kip/.local/share/Trash/files
> and you will now be able to delete any files & subfolders in 'files' by
> selecting, then right-click |Delete. Also check /.local/share/Trash/info
> for left over info files - you can remove those as well.
> 
> Once you've done that - get out of gksu nautilus. Don't go wandering
> around the rest of your system as it's easy to forget that you are not
> in standard nautilus!
> 

I can not find the files in the terminal or in nautilus. The
kip/.local/share/Trash/files directory appears empty. (Show Hidden files
is turned on.) 

The only place they show up is in the Gnome Trash folder, by clicking on
the Trash Icon in the bottom right corner of the screen.

Do you want me to send you a screen shot?

Where else would trash be put if not  kip/.local/share/Trash/files?

You are normally able to answer all the questions.

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