GNOME Bugzilla – Bug 404600
deleting contained read-only directory / contents ..
Last modified: 2009-01-22 10:12:37 UTC
If you do: mkdir -p ~/Foo/Baa touch ~/Foo/Baa/baz chmod u-w ~/Foo/Baa Then when you drag ~/Foo to Trash - it succeeds, but when you empty trash you get a bus-load of errors wrt. working inside 'Baa' - wrt. the read-only-ness of it.
Confirming, still there with 2.21.91.
Regarding the possible options to solve this issue, would it make sense to have the following workflow: 1. User tries to empty the Trash 2. Nautilus realises that some files cannot be erased 3. Nautilus brings up a dialog box "You are attempting to empty the Trash. Some files in the Trash cannot be removed and requires administrative privileges to erase them. Do you really want to empty the Trash?" 4. If the user picks Yes, then the administrative password is requested and the erase is performed. A common situation where users get stuck with this issue is when they copy files from a data CDROM.
A subset of the issue, copying files from read-only media such as a CDROM, has been resolved with bug 550816.
This looks like a duplicate of bug 108307
And it was fixed here: 2008-12-16 Ryan Lortie * daemon/trashlib/trashexpunge.c: set files to mode 700 before deleting to deal with users trashing read-only directories This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
ah! i thought there was this bug somewhere, but i couldn't find it :) thanks for closing
*** Bug 568608 has been marked as a duplicate of this bug. ***