when emptying the trash you get a fake permission error message

Bug #40192 reported by Corsaire01
14
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

when the trash is empty and you wish to empty it :
-do a right-click on it
-select 'Empty Trash'
-validate the Warning message about destroying all the trash content

then you get a message saying :
"file" cannot be deleted because you don't have permission to modify its parent directory. (translated from french)

if you click on 'retry' you will get this message in circles, but pressing 'cancel' closes the error message and the trash was really emptyed...

first this statement is false :

stranche@gallion:~$ ls -ndl .
drwx------ 83 1000 1000 8192 2006-04-19 19:19 .
stranche@gallion:~$ ls -ndl .Trash/
drwx------ 2 1000 1000 4096 2006-04-19 19:20 .Trash/

as you can see my HOME directory and the .Trash folder shares the same uid/gid informations.

If this can be a hint, my home was reused several times at distro version changes, the /home is in a proper disk partition and is not re-formated every time, however until now there were never been any trouble.

Revision history for this message
Corsaire01 (stephane-tranchemer) wrote :

After applying updates today and reboot this problem no longer happens.

An update done during the last 48h fixed the thing. This bug can be closed.

Revision history for this message
Corsaire01 (stephane-tranchemer) wrote :

Hold it !
Fake joy, here it happens again !

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 40192] Re: when emptying the trash you get a fake permission error message

What is the output of: ls -alR ~/.Trash/

Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug could be that the .Trash directory lists something that nautilus is not authorized to delete. Could you reply to the previous comment?

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Corsaire01 (stephane-tranchemer) wrote :

here is the output :

stranche@gallion:~$ ls -alR ~/.Trash/
/home/stranche/.Trash/:
total 16
drwx------ 2 stranche stranche 4096 2006-04-23 14:16 .
drwx------ 83 stranche stranche 8192 2006-04-26 19:51 ..

today the problem did not show... really annoying

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you run that command when you get the issue?

Revision history for this message
loftx (tom-loftxnetwork) wrote :

I have the same problem - it occurs when I try to delete the some stuff from Ogre (the game making SDK). I posted the result of ls -alR ~/.Trash/ at http://pastebin.com/728364

The error is recurring, at least when attempting to delete from nautilus. I can provide any more information if needed.

Note: There is also another problem with my trash which won't let me delete (or even acknowlege the deletion) a couple of files. The links dcpp and ldcpp (referended in top of the list command) don't seem to want to be deleted at all - pressing del or using the context menu doesn't bring up that dialog box, and an attempt to select multiple files to delete including those two fails. They also have a red cross and a yellow padlock emblem - I have no idea if this is related to the other bug here.

Revision history for this message
loftx (tom-loftxnetwork) wrote :

Sorry just read the original bug more carefully and my symptons are not exactly the same. For me, there are some files (often created when using sudo make, so maybe that has something to do with it) which can be moved to the wastebasket, but then can't be deleated at all. Retry just brings up the message again, and cancel stops the process so the dialog seems fine - the file's just can't be delated. I'll try and find a more appropriate bug to file this under.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Is this still a problem in Dapper or Edgy? Corsaire01: can you try what Sébastien suggested?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Your bug lacks information we would need to investigate further. We
are now going to close the bug - please reopen if you have more
information at hand.

Changed in nautilus:
status: Needs Info → Rejected
Revision history for this message
oddemirci (oddemirci) wrote :

When you make a file using sudo its permissions are root not you. So you can trash it but later you cannot empty the trash. First restore the file, then take the permissions to yourself using "sudo chmod blah blah blah" then hopefully you can empty the trash.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.