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

Why is Mountain Lion asking for my password to delete files?

All of a sudden, Mountain Lion is asking for my password every time I want to delete a file. Anyone know why?

iMac (27-inch Late 2009), OS X Mountain Lion

Posted on Aug 17, 2012 9:10 AM

Reply
Question marked as Best reply

Posted on Aug 17, 2012 9:16 AM

Open Terminal and type:


sudo rm -ri ~/.Trashes

78 replies

Jun 26, 2013 3:31 PM in response to cityhermit

cityhermit wrote:

I don't know, nothing seems to work. Are you saying just to replace the second username with my username or both? (I did the second only and got invalid argument). Also, this is different than the one that was earlier in this line...

You substitute your username everywhere it appears in those two commands. So if it was freddy, the first command would be


sudo chown -R freddy:staff /Users/freddy/.Trash

Aug 3, 2013 1:11 PM in response to Kaelisan

I had this and check that my .Trash was owned by root, in fact, everytime I delete something the Trash can look empry all the time. This is what I did and works:


Open Terminal and type:

sudo chown -R your-username .Trash/

wher 'your-username' is your user name.


To know your user name just type the command: whoami


Or, if you want to do everything in one single line:

sudo chown -R `whoami` .Trash/


Everytime you use the command sudo the system will ask the root password. If you don't know it, use your password.

Aug 3, 2013 4:07 PM in response to Johandry

Johandry wrote:

Everytime you use the command sudo the system will ask the root password. If you don't know it, use your password.

No, it doens't want the root password, which few if any people need to enable. It's asking for your user's admin password. BTW, Once provided, you can run sudo w/o it for at least five minutes, the Terminal default time.

Sep 19, 2013 5:39 PM in response to Kaelisan

The terminal command line stuff might work, but I found this article to be the most helpful in actually explaining what to do and what is going on.


I solved this problem by booting into the recovery partition, resetting my admin account's password and resetting home directory permissions and ACLs.

See this:

http://reviews.cnet.com/8301-13727_7-57383188-263/what-to-do-when-the-os-x-finde r-requires-passwords-for-managing-files/

Why is Mountain Lion asking for my password to delete files?

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