Why Does OS X Lion Ask for Password When Deleting Files in Home Directory?

osx lion

I updated to Mac OS Lion and now every time I delete any file it asks me for my password. Any file – be it on the Desktop, in the Downloads folder or in any other place. It asks me for my password every time.

That behaviour is annoying. Is it the new default? Or there is something wrong?

Edit:

For example: this file, which is located on the desktop.

➜  Desktop  l | grep terminal
-rw-r--r--@   1 Nerian  staff   841913 22 jul 14:16 terminal.png

Edit:

Seems that quite a lot of people are having the same issue:

https://discussions.apple.com/thread/3199093?start=0&tstart=0

https://discussions.apple.com/thread/3197928?start=0&tstart=0

Edit:

I can delete the same file – a screenshot in the desktop – using the terminal and I am not prompted for a password. If I use the GUI then I am prompted.

Also, If I create a new account and make a new screenshot and try to delete everything works just fine. No password required.

When I am prompted for my password and I write it, the file is then deleted yet it doesn't appear in the bin.

Best Answer

The problem was that the .Trash folder in my user's directory was owned by root.

➜  ~  l | grep .Trash
drwx------   82 root    staff    2788 25 jul 17:26 .Trash

In order to give back the ownership to my user issue the following command:

➜  ~  sudo chown your_user_name ~/.Trash 
Related Question