Is it possible to create a subfolder directly as a share destination?
Applies to
ONTAP 9
Answer
- Yes, creating a CIFS share for a subfolder (not at the volume root) is supported.
- Use the following command to create a CIFS share for a subfolder:
vserver cifs share create -vserver <svm_name> -share-name <share_name> -path /vol/<volume_name>/<subfolder_path>
- When specifying the share path as a subfolder, clients access the share using:
\\\\<svm_name>\\<share_name>
- The junction path is used internally in ONTAP to mount the volume within the SVM namespace.
- Clients do not need to be aware of the junction path when accessing the share via the share name.
- Accessing via administrative share (e.g.,
c$) is possible for users with administrative privileges:
\\\\<svm_name>\\c$\\<junction_path>\\<subfolder_path>
- Note: Use forward slashes
/in ONTAP path configuration, but Windows clients use backslashes\\for access.
Additional Information
additionalInformation_text
