After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552102 - Trash can't delete files that don't belong to user, no warning message
Trash can't delete files that don't belong to user, no warning message
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: trash applet
2.22.x
Other All
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gnome-applets Maintainers
: 569713 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-13 11:40 UTC by terzag
Modified: 2020-11-06 19:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description terzag 2008-09-13 11:40:59 UTC
Please describe the problem:
If the trash contains files or folders that don't belong to the current user, it can't be emptied. Also, there is no error message indicating the problem.

Please note that I first encountered this bug when having in the trash (in a subfolder), a file belonging to "nobody" resulting from compiling some software. At the time, I got an error message when using the "empty trash" button in the trash virtual folder and no message when emptying from the trash-applet context menu. But I couldn't reproduce the behaviour easily.

The one I can reproduce (described below) at will don't display an error message with the trash applet not with the trash virtual folder, so there might be two specific problems out there.

Steps to reproduce:
1. Create a folder as standard user : mkdir testfolder1
2. Go inside it : cd testfolder1
3. There, create a folder as root : sudo mkdir testfolder2
4. Create a file as standard user : touch testfile
5. Move the file in the root's folder (as root to be able to write in it) : sudo mv testfile testfolder2

You now have the following directory structure : testfolder1 (user) / testfolder2 (root) / testfile (user)

6. From Nautilus, delete testfolder1 so it ends in the trash.
7. You can't empty the trash because there's a folder somewhere inside that doesn't belong to you but had no problem putting it inside because the top folder belongs to you. To be able to empty the trash, you'll have to go to ~/.local/share/Trash/ and delete the files as root from a terminal.

Actual results:
The trash can' be emptied.

Expected results:


Does this happen every time?
Can be reproduced at will, although it is not a common case (as explained above, I encountered the bug first when deleting remaining files from a compilation and I had one belonging to "nobody" in a subfolder).

Other information:
Comment 1 Artur Rona 2008-10-24 21:47:32 UTC
I can confirm this bug.
Comment 2 Benjamin Dörr 2008-10-31 13:30:30 UTC
I can confirm this too.
Comment 3 Allison Karlitskaya (desrt) 2008-12-21 20:18:42 UTC
Thinking about a good way to fix this.
Comment 4 Allison Karlitskaya (desrt) 2009-02-11 01:13:33 UTC
*** Bug 569713 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2020-11-06 19:57:30 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-applets/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.