Rishi TD

Q: Permissions and Ownerships

I'm using OS X Server in Yosemite

 

When users save their files directly from their computers to the server via AutoCad App the permissions is not set as specified on the file server.

 

This problem does not occur if we use Finder to copy the file from their HDD to the Server HDD.

 

Any ideas what I might do to fix this problem?

Mac mini, OS X Server

Posted on Jun 9, 2015 8:16 PM

Close

Q: Permissions and Ownerships

  • All replies
  • Helpful answers

  • by hichamfromfrance,

    hichamfromfrance hichamfromfrance Jun 12, 2015 3:51 AM in response to Rishi TD
    Level 1 (5 points)
    Mac OS X
    Jun 12, 2015 3:51 AM in response to Rishi TD

    Hi there,

     

    Sorry, I don't have the solution but I have the same problem so I keep following your question.

    The strange thing is that for me it happen also with the finder, often when one user works on a file on the server, and save it...the file keep the permission and right of the user and not of the server.
    I don't know if it's normal or not but it's a big problem as often the other users can't work any more on the file.

  • by Michael Diehr,

    Michael Diehr Michael Diehr Jun 12, 2015 8:53 AM in response to Rishi TD
    Level 1 (75 points)
    Servers Enterprise
    Jun 12, 2015 8:53 AM in response to Rishi TD
  • by hichamfromfrance,

    hichamfromfrance hichamfromfrance Jun 15, 2015 1:33 AM in response to Michael Diehr
    Level 1 (5 points)
    Mac OS X
    Jun 15, 2015 1:33 AM in response to Michael Diehr

    Hi Michael,

     

    That describe exactly the problem I have.

    It will try the solution suggested

     

    Thank you

     

    H.

  • by Michael Diehr,

    Michael Diehr Michael Diehr Jun 15, 2015 7:23 AM in response to hichamfromfrance
    Level 1 (75 points)
    Servers Enterprise
    Jun 15, 2015 7:23 AM in response to hichamfromfrance

    If that trick doesn't help, you may want to check your posix permissions.  I was having a situation where users could save their files, but then other users couldn't read them, even though the ACLs were set properly to have them all in the same group.

     

    I realized sometime later that my POSIX permissions were not allowing Group Read/Write, e.g. they were 700 rather than 770.

     

    I was able to fix it with a few terminal commands.

     

      # In the examples below, replace "MySharedVolume/MySharedFolder" with the actual path to your share

      # and replace "myGroupName" below with the short name of your file sharing group)


      # Note: if you aren't sure about your ACLs, you can run Step 1 and Step 2 to reset the ACLs:

      # if not, then start at Step 3

      # Step 1: recursively remove all ACLs from the entire folder tree:

        sudo chmod -R -N /Volumes/MySharedVolume/MySharedFolder/

      # Step 2: Set the group to have full permissions:

        sudo chmod -R +a "myGroupName allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextatt r,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_inherit" /Volumes/MySharedVolume/MySharedFolder/

     

      # Now, fix the POSIX permissions:

      # Step 3: First, make sure the Group is set to our group

      sudo chgrp -R myGroupName /Volumes/MySharedVolume/MySharedFolder/

     

      # Step 4: Fix the posix permissions to make sure Group has full access

      sudo chmod -R 770 /Volumes/MySharedVolume/MySharedFolder/

     

    After doing this, my group members now have full read/write permissions to all files/folders in the share