AFP548 Changing the world one server at a time.

Adding inherited permissions with chmod -E

Home › Forums › OS X Server and Client Discussion › File Serving › Adding inherited permissions with chmod -E

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #378082
    mkoreen
    Participant

    I know it’s possible to add an “inherited” permission with chmod +ai, but I have a script that’s writing in entire ACL’s onto files so I need a way to add inherited permissions with chmod -E. I can’t seem to find the right syntax through trial and error, and I haven’t yet found a manual that explains this, but I *assume* that it’s possible.

    Does anyone know? If I don’t get any answers soon I’ll probably end up reading the source if I can get my hands on it.

    Example:

    This works:
    # chmod -E test
    user:mkoreen:allow writesecurity

    This does not:
    # chmod -E test
    user:mkoreen:inherited allow writesecurity
    chmod: Unknown tag type ‘inherited’

    P.S. My script is converting ext3 ACLs into HFS+ ACLs, moving from a linux file server to one running OSX and all the users have to still be able to read/write their files correctly after the move. The answer here would really be helpful.

    #378200
    uffe7
    Participant

    does this work ?

    chmod +a “groupname allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit” “$WORKDIR$1/groupdir”

    btw can you post your script ? i’m just in to migrating ACL myself

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.