Skip to Main Content

Hardware

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ZFS Storage appliance: How to configure SMB share level ACLs via REST API?

1272019Jun 24 2015 — edited Jun 26 2015

Hello.

    I am developing a script which uses the REST API for the ZFS Storage appliance.  This script is used to make a snapshot and clone of a production environment for use as a temporary test environment.  So far everything is great... except I can find no way to specify the "Share Level ACL" settings for the SMB protocol.

    A manual (via web ui) clone results in a default ACL of "everyone, full access".  The ACL for the original share (source for the snapshot/clone) has a specific user list with specific ACLs.  I assume that this information is not in the ZFS snapshot, but maintained outside of ZFS (Q1: Is this correct?)

   I've re-read the Oracle document "E56084.pdf" ("Oracle ZFS Storage Appliance RESTful API Guide, Release 2013.1.4.0") a few times.  There are vague references to the "sharesmb" property.  My script correctly sets this value ("sharesmb=NAME,abe=off,dfsroot=false") in the JSON payload passed to the API for creating a file system clone.  However, I see no property that I can set for the actual ACL list.  For NFS, this is easy, it is the value passed in the "sharenfs" property.

   A "GET" of the source project and share does not contain any reference to the users listed in the "SMB Share Level ACL" as seen in the web UI.

   So, how do I copy over, or explicitly set if necessary, the "SMB Share Level ACLs" on a share via the REST api?

Thanks!

Comments
Post Details
Added on Jun 24 2015
6 comments
1,131 views