Skip navigation

Permissions in a folder are not applied to new files added by users over shared network

149 Views 3 Replies Latest reply: Feb 22, 2013 11:57 AM by Frank Caggiano RSS
Jim Dysart Calculating status...
Currently Being Moderated
Feb 22, 2013 7:53 AM

New files added to a shared folder do not inherit the permissions of the folder but rather retain the permissions of the user. Because the purpose of the folder on the network is to allow multiple users access to all the files (read and write), these new files cannot be accessed and editd by others.Is there a way to have the new files automatically inherit the folder permissons? I am aware of the "Apply to enclosed items " drop-down in the Get Info window but this is not practical given the number of new files that are produced and filed.

 

THanks,

JD

MacBook Pro, Mac OS X (10.7.4)
  • Frank Caggiano Level 7 Level 7 (22,745 points)

    Is this on a disk volume other then root? If so you can set the volume up to ignore permissions. Open a Finer Info window on the volume and in the lower left hand corner you will see the checkbox to turn this on.

     

    As I wrote this can be done for any volume other then the root (boot) disk.

  • Frank Caggiano Level 7 Level 7 (22,745 points)

    If it's the folder is on the boot drive then the only way to accomplish this is with a combination of groups and ACL's as far as I know. There may be other ways but this is the one I know.

     

    You say the folder is on the network but is on the boot disk, how are you setting this up and are the users accessing this all from Mac's? And they all have accounts on this Mac?

     

    In a nutshell you would setup a group that all the users needing to access the folder belong to and then setup the ACL on the fodder so that all member's of that group will have full permission to whatever is in the folder.

     

    So first in Users&Groups create a group for this and add all the users who need access.

     

    The do to the folder and change its group to the group you created and change its mode to 775 (or 770 if you don't want anyone else having even read access on the folder)

     

    Then enter this

    sudo chmod -R +a "GroupNameCreated  allow delete,chown,list,search,add_file,\

    add_subdirectory,delete_child,file_inherit,directory_inherit"  folderToChange

     

    Now the weird thing is if you look at files in the folder they will appear to have the normal Unix mode of 644 but anyone in the group will have read, write and delete permission on the items in the folder.

     

    I suggest you play with this on a test folder and seeing if it meets your needs before changing the working folder.

     

    Also this will not change anything already in the folder it only applies to newly created files/folders

     

    regards

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.