I searched around, but did not find answer to this question .. So here is my requirement
I am creating multiple ZFS file systems on my pool. Some of those I want accessible by all users (read or read and write, depending on situation).
However, I would like to have some ZFS file systems that are accessible to only authorized users. And they should not even be listed for non authorized users. So non-authorized users should not be able to see any shares that they cannot read into.
Is that possible? How to do that?
Thanks
ETA: Saw this on solaris documentation
"When SMB shares are created on a ZFS file system, the SMB share name appears as an entry in the .zfs/shares directory. You can use the ls command to show the share-level ACLs on the entries in this directory. You can also use the chmod command to modify the share-level ACLs on the entries in this directory. See the ls(1) and chmod(1) man pages."
Will try that .. but not yet sure how to! Do I add a user (authorized user) with read write permissions using /usr/bin/chmod and then remove everyone's permissions again using chmod?
ETA2: I think this is a way to do it on FreeNAS. Don't have my freeNAS set up anymore to test.
ETA3: After further reading .. this feature seems to be called ABE (Access Based Enumeration). Still do not know how to do it though
I am creating multiple ZFS file systems on my pool. Some of those I want accessible by all users (read or read and write, depending on situation).
However, I would like to have some ZFS file systems that are accessible to only authorized users. And they should not even be listed for non authorized users. So non-authorized users should not be able to see any shares that they cannot read into.
Is that possible? How to do that?
Thanks
ETA: Saw this on solaris documentation
"When SMB shares are created on a ZFS file system, the SMB share name appears as an entry in the .zfs/shares directory. You can use the ls command to show the share-level ACLs on the entries in this directory. You can also use the chmod command to modify the share-level ACLs on the entries in this directory. See the ls(1) and chmod(1) man pages."
Will try that .. but not yet sure how to! Do I add a user (authorized user) with read write permissions using /usr/bin/chmod and then remove everyone's permissions again using chmod?
ETA2: I think this is a way to do it on FreeNAS. Don't have my freeNAS set up anymore to test.
ETA3: After further reading .. this feature seems to be called ABE (Access Based Enumeration). Still do not know how to do it though
Last edited: