How to Empty Trash if files in there are owned by Root?
Nils Kassube
kassube at gmx.net
Tue Oct 21 15:23:41 UTC 2008
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
More information about the ubuntu-users
mailing list