macOS Mojave with server 5.7.1file sharing Group permissions problem :-(

hi

i have macOS Mojave with server 5.7.1 on Mac pro(Late 2013).

I'm running an updated server for the latest version.

To my question I did not find an answer through Google ...


I do several tests before moving the server to work.

The test on the server is performed from several computers, mainly from operating system 10.12.


I set up 3 users (A + B + C) and 2 groups (E + F) to check permissions Unfortunately permissions do not work properly.

And there seems to be a problem with the ACL and the permissions do not pass automatically.

The entrance was examined in two situations: AFP + SMB.


for example:

When User A logs on to the server and builds a folder / file, checking permissions on the file from the server is saved to User A and not to the Group Name (Group E).

Group: wheel - Permission: read only

All: everyone - permission: read only.


When user B enters the server and builds a folder / file, checking permissions on the file from the server is saved to user name B and not to the group name (group E).

Group: wheel - Permission: read only

All: everyone - permission: read only.



Arrange permissions through: System Prepernces / File Sharing and manual permissions changes: Apple Premissions to Enclosed Items.

Everything works out ... until the next user change.


I would be happy for help an experienced server user


Best regards

Benny

MacBook Air, macOS Sierra (10.12.6), Macintosh Plus,PB 400Hhz black, PB 867, iMac G3, OSX Server5

Posted on Oct 8, 2018 9:18 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 15, 2019 7:35 PM

Hey guys I found this related information from high sierra server that helped me and it appears to work for keeping inherited permissions.


Firstly enable ACL permissions for SMB shares with the following command.



Sharing modification via terminal to engage ACLs



sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server AclsEnabled -bool YES


Then set up inheritance permissions on the parent holder with the following command. This should recursively go through your share and apply the relevant permissions.



sudo chmod -R +a "group:REPLACE_WITH_YOURGROUP_NAME:allow readattr,writeattr,readextattr,writeextattr,readsecurity,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" REPLACE_WITH_PATH_TO_PARENT_SHARED_FOLDER

118 replies

Jun 18, 2019 2:52 PM in response to stuarta99

@MarkDannau:


You might have already checked this, but you have to specify AFP for each share in System Preferences > Sharing (select share) then click Options.


And I've seen that check come unchecked unintentionally more than once. I want to say it might have been an update that did it to me, but I can't be sure.


And hopefully you already know that you CANNOT share a folder using AFP if the folder is sitting on an APFS disk. Apple does not allow it.



Oct 14, 2018 10:51 AM in response to Benny2g

Most of what Server.app had provided is deprecated and now gone, or has been migrated into the base macOS system and tools.


This particular file-sharing feature migrated into macOS with High Sierra.


Here, migrating to a NAS box might be an option, depending on local requirements and considerations.


Prepare for changes to macOS Server 5.7.1 - Apple Support

https://developer.apple.com/support/macos-server/macOS-Server-Service-Migration- Guide.pdf

Oct 14, 2018 12:54 PM in response to Benny2g

The chmod and chown commands are the usual commands, at the command line. Often sudo chmod -r and sudo chown -r, to override and to propagate the changes.


In the GUI, the Get Info tool can be used to reset ownerships and protections.


Downside: mistakes here that are propagated to multiple files and directories and to unintended targets are difficult to recover from.

Oct 15, 2018 2:36 AM in response to MrHoffman

Hi MrHoffman

The terminal looks like the solution to the problem 🙂


The command line:

sudo chmod -R + a "group: REPLACE_WITH_YOURGROUP_NAME: allow readattr, writeattr, readextattr, writeextattr, readsecurity, list, search, add_file, add_subdirectory, delete_child, file_inherit, directory_inherit" REPLACE_WITH_PATH_TO_PARENT_SHARED_FOLDER



This seems to make it possible to maintain ACL permissions.


Do not understand why but now another problem has been created, the AFP connection is not possible ...😠


Continues to do tests to check that there are no additional problems with 3rd party software


Best regards

Benny

Jan 18, 2019 1:32 PM in response to Mark Dannau

Mark it’s likely an issue with the group

name. You probably have a short name for that group like programmeext rather than including the space. I noticed an issue a couple times with the command not finding the proper group ID related to the name until I got the short name right.


also so I didn’t see the second quotation mark in your command can you verify that you have it there?



Mar 30, 2019 6:49 AM in response to ahawkes

Thanks to those who mentioned - TinkerTool System. I checked out and it looks like it will fill the need for my server folder permissions and propagation management. Sorry to have to go to 3rd party to manage this but in talking with an apple tech it seems most folks are going to cloud based file sharing so apple does not care about its server service much anymore.

Apr 23, 2019 10:24 AM in response to Benny2g

TinkerTool System does work, I have a couple Mojave servers working like it was 10.12 again.


It's not that adding the small expense of TTS in place of buying Server from Apple is a big deal (if you don't mind buying software outside of the Apple App Store). It's that there is no guarantee that Apple won't drop file sharing all together at some point in the future. Especially given the actions taken with Server. Continuing to operate an Apple based server system seems to be a risky venture moving forward.


I'm curious as to the future of file sharing capabilities of the MacOS in the near future. Wondering if anyone here has any insight.

Nov 21, 2018 9:10 PM in response to andyrings

Yes, This is indeed an issue that needs to be resolved. I Support a small Design company that is a majority mac. Several users working in shared storage from a mac mini with a promise pegasus drive shared out. It will continue to run High Sierra for the foreseeable future, because of the loss of ACL based permissions administration. Further more the replacement device will most likely be MS server as NAS based storage has not performed well in the environment thus far.


So sad that niche foothold that was here, and the ability to get work done easily has evaporated all the while trying to cater to the "Pro" user.


I stated user because apparently apple is un-interested in supporting multiple users working in a shared workgroup environment

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.

macOS Mojave with server 5.7.1file sharing Group permissions problem :-(

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