Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Trash not working (file will be deleted immediately)

Hi,

I recently upgraded from mac os 10.4 to 10.5, and I have now a strange Trash behaviour. When I move a file to the Trash Can, the finder says that it can not move the file to the Trash, and that it will be deleted immediately.

The point is that this problems only happens for files located in my home directory (which is a NFS remote directory), and not for files located on the physical hard drive of my mac.

I guess this has something to do with the location of the Trash directories, so I checked that, but the permissions seem to be the same:

% sudo ls -lnd /.Trashes/5618 ~/.Trash
drwx------@ 2 5618 2140 68 Jan 15 13:39 /.Trashes/5618
drwx------ 2 5618 2140 6 Jan 15 13:39 /home/salagnac/.Trash

One last thing, I don't know if it matters, but I am not part of the "staff" group (my account is a network account).

Can anybody help ? thanks a lot !

mac mini, Mac OS X (10.5.1)

Posted on Jan 15, 2008 6:04 AM

Reply
Question marked as Best reply

Posted on Jan 15, 2008 1:34 PM

I'm having this too, a long with mail, safari and ical crashing when i open them. i'm positive it's a permissions fault but have no idea how to sort it out!
22 replies

Jan 16, 2008 1:23 AM in response to Gyom

That dialog only comes up on remote volumes. If you connected to an AFP server, for example, and tried to move something to the trash, it would give you the same response. There is a technical reason for it that someone told me once, but I can't remember right now. Sorry.

As for your specific issue, my guess would be that its due to your home directory being on a remote NFS volume. Leopard has been having issues with NFS as of late. Remote home directories are possible (we use them at work all the time), but they have to be setup in a specific way in order to work properly. You can't just redirect it via the Accounts Pref Pane or a bunch of symlinks.

Jan 17, 2008 1:26 AM in response to Gyom

I'm glad you say "it doesn't work", but I did notice very well that it doesn't work !

My question is about a fix for this issue, because it is quite annoying. putting something into the trash only means moving it to ~/.Trash, so why doesn't it work any more ? I mean, with tiger the trash worked like a charm !

Jan 26, 2008 7:10 AM in response to Gyom

Any response to your bug?

One thing I was thinking was that if the File Manager considers the volume (and ultimately the trash folder inside it) to be read-only or locked, this dialog will appear. Go into Terminal and type:

ls -lde <path to NFS volume your home directory is on>

What would also be really helpful is, if you have the Xcode/Developer tools installed, run:

/Developer/Tools/GetFileInfo <path to NFS volume your home directory is on>
/Developer/Tools/GetFileInfo ~/.Trash

Copy/paste the results from both commands into a reply and post it up. If you don't have the Xcode/Developer Tools installed on that machine, you could copy the file /Developer/Tools/GetInfo from another machine to your Desktop and run it by typing:

~/Desktop/GetFileInfo <path to NFS volume your home directory is on>
~/Desktop/GetFileInfo ~/.Trash

Message was edited by: petrock

Jan 27, 2008 9:34 AM in response to petrock

Thank you for your help.

I don't know if you can get something out of it, but this is what I get:

% ls -lde /home/salagnac
drwxrwxrwx 80 salagnac kronos 8.0K Jan 27 18:29 /home/salagnac/

% ls -lde /home
dr-xr-xr-x 3 root wheel 2B Jan 25 14:33 /home/

% /Developer/Tools/GetFileInfo /home
directory: "/home"
attributes: avbstclinmedz
created: 01/01/1904 01:00:00
modified: 01/25/2008 14:33:28

% /Developer/Tools/GetFileInfo /home/salagnac
directory: "/home/salagnac"
attributes: avbstclinmedz
created: 01/01/1904 01:00:00
modified: 01/27/2008 18:31:51

% /Developer/Tools/GetFileInfo /home/salagnac/.Trash
directory: "/home/salagnac/.Trash"
attributes: avbstclinmedz
created: 01/01/1904 01:00:00
modified: 01/27/2008 18:31:51

Jan 27, 2008 5:15 PM in response to Gyom

If you run ls -lde on ~/.Trash, does it show you as the owner? If not, then set yourself as the owner and then force quit the finder.

The privs etc look fine, although the volume /home is mounted with read-only privs. It shouldn't make a difference with an HFS+ volume, but might with NFS. Leopard has been acting weird with NFS volumes as of late.

Another interesting thing is that the create dates are all 1/1/1904 at 1am. Don't think that makes a difference, but it is weird.

Either way, I would definitely write a bug up (via http://bugreporter.apple.com) and give them the info you've gathered.

Jan 28, 2008 1:19 AM in response to petrock

Hi,

Yes, the owner and group of all my files are ok (salagnac/kronos).

One thing that I suspected is the membership of the "staff" group, which seems to matter for leopard. I asked the sysadmins to be added to the staff group, and then tried to "chgrp" my .Trash directory, or some other files, but it didn't help. (of course I relauched the finder every time).

On the NFS side: all the home directories here are located in /home, that's why I can obviously not have rw permissions over /home. Though, I have correct permissions (rwx) over my own home dir, which is /home/salagnac.

The creation and modification times are probably set by the server, this is why they look odd.

As for bug reporting, I did fill a bug report (#5697295), and apple closed it as a duplicate of bug #5608893. I'm a little bit disappointed now, because I don't know how to find information about that other bug.

Anyway, this trash problem is annoying, but I can live with it. I'm just trying to help apple improving their os (and there is quite a lot of work to do...)

Jan 28, 2008 6:23 AM in response to Gyom

If you are the owner of the file/folder, then the group has no effect (unless you get into the world of ACLs, which you aren't right now so don't worry).

The group staff is a group containing all the local admin users on your machine. If you are an admin, you should have already been a member of staff. If your not an admin, then you should not be a member. Being a member of staff essentially makes you an admin user, but not entirely.

As for the bug report, thats how it is sometimes. If they already have a bug about the problem they will dupe your bug to that bug. No point in tracking the same bug in multiple places. It does suck in that you no longer have access to see what is going on with the bug, but thats life I guess. At least you know that your not the only one with this problem, its just that someone else wrote a bug up before you did.

Note: from talking with friends who are Apple Engineers, just because your bug report got duped to another bug report shouldn't discourage you from writing up bug reports. You never know, you could add some tid-bit of information that helps solve the problem. Also, the number of dupes for a bug report (along with the severity of the issue) is taken into consideration when they figure out which bugs to fix for a Software Update.

Good luck...

Jan 30, 2008 7:47 PM in response to Gyom

I am having the same problem...went to an apple store today, but they did not know how to fix it. But here is something odd...I upgraded to 10.5 when it came out and my trash can worked like it always had. I recently had a problem that caused me to run DiskWarrior and repair permissions. Bad move as I found out later on the DW site....it is not compatible with 10.5 and all my permissions on lots of programs stopped working. End result is I had to reload 10.5 again. Now all the problems caused by the DW seem to be fixed.....EXCEPT the trash problem.

I'll keep following this thread, but I'd sure like to find out why it doesn't work.

Trash not working (file will be deleted immediately)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.