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

kmosx5: "Apply to enclosed items" causes permissions issues on home folder

In Leopard, if "Apply to enclosed Items" is used on the home folder, massive permissions issues can be caused on the home folder.



The solution is this (courtesy of petrock)



1) boot from your Leopard install CD (insert it, shut down, start while holding "C")

2) Choose your language.

3) When the menubar appears, select Utilities->Reset Password.

4) In the window that appears, select your boot volume from the list at the top.

5) In the popup button below the volume list, select your user from the list.

6) Click the "Reset" button at the bottom of the window. This will reset the privs (and ACLs) back to their default settings.

7) Repeat Steps 5 & 6 for every user on your machine who has this problem (except "System Administrator (Root)").



Input on this tip would be appreciated.

17" iMac 2GHz Intel Core 2 Duo 1G DDR2 SDRAM 667MHz 160GB hard drive, Mac OS X (10.5.2), iMac dual booted to run Windows XP. iPod 5th gen with video 30GB.

Posted on Mar 28, 2008 9:34 AM

Reply
20 replies

Apr 28, 2008 12:22 PM in response to joshz

one comment on this.
The "reset permissions and ACLs" utility on the leopard install DVD is slightly buggy. While it will reset the ownership and the ACLs on your home directory correctly, it will set the group ownership on everything in it to wheel (gid=0).

This is not a huge deal but it certainly is a bug.

to rectify it, run the following terminal command from your account:

*sudo chgrp -R `id -gn` ~*

Apr 28, 2008 4:17 PM in response to V.K.

V.K. wrote:
one comment on this.
The "reset permissions and ACLs" utility on the leopard install DVD is slightly buggy. While it will reset the ownership and the ACLs on your home directory correctly, it will set the group ownership on everything in it to wheel (gid=0).

This is not a huge deal but it certainly is a bug.

to rectify it, run the following terminal command from your account:

*sudo chgrp -R `id -gn` ~*


That won't necessarily work. For example, on my computer, I have a non-admin account I use daily, and a separate admin account for admin tasks. "sudo" can only be run from an admin account, so there is an obvious paradox there-maybe "sudo chgrp -R staff /Users/affectedaccountname/* would work better, or maybe running "id -gn" in the affected account first, then writing down the output.

Just a minor flaw, but I thought I should make you aware of it. that is a good idea in general, though.

Right now, I have work I have to do, and I'll revise this hint soon.

Thanks for the input!

Apr 28, 2008 4:39 PM in response to joshz

ok, you are right on this. i didn't put staff for the group because many people who upgraded from Tiger don't belong to staff and have as their primary group the private group inherited from Tiger.

So I guess for a nonadmin account you should log in from an admin account or use
*su adminusername* and run

*sudo chgrp -R groupname /Users/username*

here groupname is either staff or username depending on how the user is set up.

Apr 29, 2008 4:17 AM in response to V.K.

In Leopard, if "Apply to enclosed Items" is used on the home folder, massive permissions issues can be caused on it, requiring you to provide your password when moving things around within it, or when deleting things in it.

The solution is this (courtesy of petrock)

1) Boot from your Leopard install CD/DVD (insert it, shut down, start while holding "C")
2) Choose your language.
3) When the menubar appears, select Utilities>Reset Password.
4) In the window that appears, select your boot volume from the list at the top.
5) In the popup button below the volume list, select your user from the list.
6) Click the "Reset" button at the bottom of the window. This will reset the permissions (and ACLs) back to their default settings.
7) Repeat Steps 5 & 6 for every user on your machine who has this problem (except "System Administrator (Root)").

There is one bug in this process, so you need to take some additional steps to get permissions back to how they should be.

8) Log in to your account.
9) Open Terminal (/Applications/Utilities/Terminal)
10) Copy the blue text in, and press "return". chgrp -R `id -gn` ~/*

11) You won't see anything happen, but you can check that it worked by selecting your home folder, and clicking File>Get Info. You will see either "unknown" or "staff", depending on how you installed Leopard. Either one is fine.
12) Repeat the steps 8-11 for every account that you reset permissions for on your machine.

May 1, 2008 6:30 PM in response to joshz

In Leopard, if "Apply to enclosed Items" is used on the home folder, massive permissions issues can be caused on it, requiring you to provide your password when moving things around within it, or when deleting things in it.

The solution is this (first seven steps courtesy of petrock)

1) Boot from your Leopard install CD/DVD (insert it, shut down, start while holding "C")
2) Choose your language.
3) When the menubar appears, select Utilities>Reset Password.
4) In the window that appears, select your boot volume (by default, "Macintosh HD") from the list at the top.
5) In the popup menu below the volume list, select an affected user. (One that you used "Apply to enclosed items" on).
6) Click the "Reset" button at the bottom of the window. This will reset the permissions (and ACLs) back to their default settings.
7) Repeat Steps 5 & 6 for every user on your machine who has this problem (except "System Administrator (Root)").

There is one bug in this process, so you need to take some additional steps to get permissions back to how they should be.

8) Log in to an account you reset the permissions for.
9) Open Terminal (/Applications/Utilities/Terminal)
10) Copy the blue text in, and press "return". chgrp -R `id -gn` ~

11) You won't see anything happen, but you can check that it worked by selecting your home folder, and clicking File>Get Info. You will see either "unknown" or "staff" under "Sharing and Permissions", depending on how you installed Leopard. Either one is fine.
12) Repeat the steps 8-11 for every account that you reset permissions for on your machine. (Remember, NOT "System Administrator (Root)").

May 17, 2008 11:21 AM in response to joshz

Josh,
I just checked and this method resets ACLs ONLY on the system created folders themselves. Nothing inside them is affected. Therefore, I would not consider this a viable option for people who messed things up by using "apply to enclosed items" button.

The alternative is to do it from terminal.

To do so one needs to run the following commands in terminal (also originally suggested by petrock and modified by me). just copy and paste the commands (they are in bold).

*chmod -R -N ~*

this removes all ACLs from files in the home directory.

The following two commands put the necessary ACLs back where they belong.

*chmod +a "everyone deny delete" ~/ ~/Desktop ~/Documents ~/Downloads ~/Library ~/Movies ~/Music ~/Pictures ~/Public ~/Sites*

*chmod +ai "`id -un` allow list,add file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" ~/Public/Drop\ Box*

\\
This is faster (no need to start from the DVD) and cleans up everything.

Message was edited by: V.K.

May 17, 2008 1:57 PM in response to joshz

because when I try *chmod +a* it doesn't work right. I'm not sure why but I tested it with a couple of accounts on my computer and if I don't use +ai,
and user 2 drops a file in Drop Box of user 1, then user 1 doesn't get full privileges to that file. Instead, user 2 gets those privileges! By this I mean that user 2 not only remains the owner of that file (that's of course expected) but that file also acquires a bunch of ACLs giving user 2 full access to it!
It sounds weird but that's what happens when I test it. Could you test it yourself and see how it works for you?

kmosx5: "Apply to enclosed items" causes permissions issues on home folder

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