Setting a file's permissions for two accounts automatically.

Here is my situation. I have two accounts on my mba (work and personal). Most of the time I use the two separately, but now I have to use one folder and its contents between the two accounts, via the 'Shared' folder.


My problem is that the permissions on each file (pdf, pages) are set for the account each was created in. This means that sometimes I must manually adjust the permissions. This is not a major hurdle, but is there someway to automatically give a file permissions for both accounts when I save it into the shared folder?


I was thinking folder actions, but could not see how to do this.


Can anyone suggest a solution?

MacBook Air 13″, macOS 12.6

Posted on Jun 12, 2023 9:13 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 12, 2023 1:56 PM

You need to create a group in the Users and Groups Settings, add each of the users to that group, then set an ACL on the top level, Folder that you are sharing between the two.

chmod -R +a "group:<groupName> allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" "Path/to/directory/"

You need to change <groupName> to the name of the group you made, and path/to/directory/ to your shared folder path (e.g., /Users/Shared/MyFolder)

Similar questions

1 reply
Question marked as Top-ranking reply

Jun 12, 2023 1:56 PM in response to Ian999

You need to create a group in the Users and Groups Settings, add each of the users to that group, then set an ACL on the top level, Folder that you are sharing between the two.

chmod -R +a "group:<groupName> allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" "Path/to/directory/"

You need to change <groupName> to the name of the group you made, and path/to/directory/ to your shared folder path (e.g., /Users/Shared/MyFolder)

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.

Setting a file's permissions for two accounts automatically.

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