How to Empty Trash if files in there are owned by Root?
glgxg at sbcglobal.net
Tue Oct 21 16:19:02 UTC 2008
On 10/21/2008 07:31 AM, Kipton Moravec wrote:
>> 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
>> I can not see them in the ~/.local/share/Trash/files folder. It is
>> What to do?
> 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
> 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.
OK, let's take a different approach. From the terminal:
That puts you in superuser mode, so be _very_ careful of what you delete
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:
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!
More information about the ubuntu-users