Can't delete files without password

Hello,


I can't delete any file without enter my password. And after I enter my password, the file is not in trash.


This problem started about a week ago.


Any solutions?


Thanks!

Mac Pro, Mac OS X (10.7)

Posted on Oct 4, 2011 8:09 PM

Reply
28 replies

Oct 5, 2011 11:45 PM in response to JazzBaritone

Should exist on your Dock. The one with the house icon. But, if not there, double-click on your boot volume icon (assuming you display HDs on your Desktop), open Users, and the one with the house is your home folder. Atlerenatively, check http://docs.info.apple.com/article.html?path=Mac/10.6/en/8767.html Should be a similar help file in Lion—I'm currently on Snow Leopard, so can't check.


User uploaded file

Oct 24, 2011 9:02 PM in response to JazzBaritone

With respect to an earlier suggestion to use "Apply to enclosed items" on the Home folder, I would not do this.


The Home folder permissions and those of its standard subfolders include a hidden "everyone deny delete" ACL that does not appear in Get Info. In Terminal, you need to include the -e option when using the ls command in order to see it. For example, I just created a new Lion test account, "t2" and logged into it. In Terminal,

--------------------

Computer:~ t2$ ls -lde ~


drwxr-xr-x+ 13 t2 staff 442 Oct 24 22:44 /Users/t2

0: group:everyone deny delete

---------------------------


Because of this, using "Apply to Enclosed Items" on a Home folder can create permissions issues rather than fix them. Doing this will propagate that ACL throughout the Home folder, with undesirable results.


For example I just created an empty folder named testfolder and a new text document named testfile in the Documents folder of my new test account, t2. I then did a Get Info on the t2 Home folder and used the "Apply to enclosed items" feature. The result is that the contents of the Documents folder now look like this:

-------------------

Computer:~ t2$ ls -le ~/Documents


total 8

drwxr-xr-x@ 3 t2 staff 102 Oct 24 22:41 About Stacks.lpdf

0: group:everyone deny delete

-rw-r--r--@ 1 t2 staff 4 Oct 24 22:45 testfile.txt

0: group:everyone deny delete

drwxr-xr-x+ 2 t2 staff 68 Oct 24 22:44 testfolder

0: group:everyone deny delete

----------------------------


As can be seen, my previously "normal" test folder and test file now carry that ACL. And if I try to rename or trash those items, I now can't do it without being asked for my password!


Apple has a Leopard support article warning of this:

Mac OS X 10.5: Renaming or saving after using "Apply to enclosed items" on a Home folder


Bottom Line: Don't use "Apply to Enclosed Items" on any folder that you haven't created yourself!

Nov 10, 2011 12:37 PM in response to baltwo

I had done some experimenting with Apple's 'Reset Home Directory Permissions and ACLs" utility, which can be accessed as per that link in Lion, and via the Install DVD in earlier systems.


When you run ''Reset Home Directory Permissions and ACLs," it corrects the ownership of all the files in the Home folder, and it additionally corrects the ACLs and regular permissions of the Home folder itself and the main subfolders (Desktop, Documents, etc). But it does not change any ACLs or regular permissions on your contained user files. After all, you might have altered these things deliberately. The result is that if your files mistakenly carry an "everyone deny delete" ACL, the ACLs have to be removed manually via Terminal (or via a utility such as BatchMod). You can then follow that by running ''Reset Home Directory Permissions and ACLs" to tidy things up.

Apple's advice for Leopard systems in my earlier link here includes first running a sudo chmod -RN ~ command, and then running that utility.

Oct 5, 2011 5:24 PM in response to JazzBaritone

Somebody in another post with a rather similar issue suggested the following:


a) open Finder,

b) select your HOME folder,

c) press [Command-I] (or Right-Click/Control-Click it and pick "Show Inspector" or "Get Info"),

d) be sure to unlock the tiny yellow "lock" at the very bottom-right of the Inspector window,

e) next from the bottom-left, right next to the tiny [+] and [-] butons, click on the "wheel" drop down,

f) and pick "Apply to enclosed items"


Hope this helps.

Oct 18, 2011 2:57 PM in response to François J. Perreault

It is important to remove any odd users that you did not create that might be messing up permissions and then you need to hit the apply to enclosed items. Using the ls -la ~ command will help to show if there is another user dominating your permissions.

I finally figured all of this out but it took a while and a combination of all of the instructions above. It finally worked.

Nov 10, 2011 8:55 AM in response to François J. Perreault

Okay, that got me thinking and digging...

I've recently had to create a new account and move my data and Library to this new account but then ended up needing to specify a password whenever I'd try to move or delete the old/migrated/moved files, and indeed, by using "ls -le /target/path" I was able to notice the "0: group:everyone deny delete" that was causing the problem. (Note that these are folders that I created myself.)


I was able to remove it using the following command:

sudo chmod -R -ai "group:everyone deny delete" /target/path


... and now I don't need to provide my password anymore.

Hope this helps.

Jun 15, 2012 11:06 AM in response to François J. Perreault

This totally worked for me 🙂

François J. Perreault wrote:


Somebody in another post with a rather similar issue suggested the following:


a) open Finder,

b) select your HOME folder,

c) press [Command-I] (or Right-Click/Control-Click it and pick "Show Inspector" or "Get Info"),

d) be sure to unlock the tiny yellow "lock" at the very bottom-right of the Inspector window,

e) next from the bottom-left, right next to the tiny [+] and [-] butons, click on the "wheel" drop down,

f) and pick "Apply to enclosed items"


Hope this helps.

Jul 24, 2012 6:40 PM in response to one50mph

This worked for me too! 🙂


When I upgraded to Lion I immediately had a problem with needing to enter my administrative password every time I needed to delete a file from anywhere. This included nikon view nx software where formerly I was able to click on images and delete whatever I wanted to. I followed "Apply to enclosed items" instructions and like magic, all of my problems disappeared and I can delete files and images immediately without a password as I used to be able to do. Thanks to all who suggested this, and for you for verifying it worked for you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't delete files without password

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