This code works, but also leaves Everyone/Full on the new share. Is there a way to remove it during creation, or is that a follow up step?
share_info = {
"path": thepath,
"svm": {
"name": svm_name
},
"name": user,
"acls": [
{"permission": "full_control", "type": "windows", "user_or_group": fulladgroup},
{"permission": "change", "type": "windows", "user_or_group": rwadgroup},
{"permission": "read", "type": "windows", "user_or_group": roadgroup}
]
}
myShare = CifsShare.from_dict(share_info)
try:
if myShare.post(poll=True😞
print("cifsshare %s created Successfully" % myShare.name)