Can someone check me on the following?
The crucial issue for daily use appears to be that new/copied files are assigned owner=group to the current user on either side, as soon as they are created. So even with a common zfsusers group with ID=1200 on both sides:
- on Linux a new file or copied file assumes owner=group=1000 and the machine knows the current user ('boldstripe') as 1000.
- on MacOS a new file or copied file assumes owner=group=505 and the machine knows the current user ('boldstripe') as 505.
I can manually assign the group=zfsusers=1200 on either side for existing files. But then I have to manually assign group ownership recursively to the files, which is not convenient.
So for the kind of practicality I would like, do I really have to give my user the same number on both platforms?
Or, is there another way to do this with a shadow user/group on each side? It could be named as a recognizable variation of my current user, with the addition of a suffix to remind me that it exists on the 'other' platform.
For example, on the MacOS, ID 1000 is now available (current user is boldstripe=505): so can I just make a new user 'boldstripe-linux' assign it the number 1000 and then add 'boldstripe' to the 'boldstripe-linux' group? Would that be enough to let the Mac user 'boldstripe' open/edit/save a file which was assigned group=1000 on the Linux side?
Ordinarily I would try this without asking here first, but this seems risky enough to seek advice first.
This reminds me of a long-standing issue on MacOS when two users on the same machine want to share files in the /Users/Shared folder. By default they are read-only to the other user, and it becomes quite difficult to set things up so either user can open/edit/save files arbitrarily. You can assign inheritable ACLs but its complicated and can get broken over time. It is actually easier if the two users just share a file on a sync service like Dropbox, although you then have to store two copies of every file on the same machine.
Edit: also, I don't see how an ACL solution would work on ZFS across both platforms.
For a description of the /Users/Shared folder problem in MacOS and more generally on Unix systems, see for example this StackExchange posting, which describes the problem and some solutions:
https://apple.stackexchange.com/questio ... /7255#7255In a way, because sharing using a traditional disk image and 'ignoring permissions' is one of the solutions, it would seem like ZFS would be a good way to fix this problem.