Create an SMB share
You must create an SMB share before you can share data from an SMB server with SMB clients. When you create a share, you can set share properties, such as designating the share as a home directory. You can also customize the share by configuring optional settings.
The directory path for the volume or qtree must exist in the SVM namespace before creating the share.
When you create a share, the default share ACL (default share permissions) is
Everyone / Full Control. After testing access to the share, you should remove the default share ACL and replace it with a more secure alternative.
If necessary, create the directory path structure for the share.
vserver cifs share createcommand checks the path specified in the
-pathoption during share creation. If the specified path does not exist, the command fails.
Create an SMB share associated with the specified SVM:
vserver cifs share create -vserver vserver_name -share-name share_name -path path [-share-properties share_properties,...] [other_attributes] [-comment text]
Verify that the share was created:
vserver cifs share show -share-name share_name
The following command creates an SMB share named “SHARE1” on SVM
vs1.example.com. Its directory path is
/users, and it is created with default properties.
cluster1::> vserver cifs share create -vserver vs1.example.com -share-name SHARE1 -path /users cluster1::> vserver cifs share show -share-name SHARE1 Vserver Share Path Properties Comment ACL --------------- -------- -------- ---------- -------- ----------- vs1.example.com SHARE1 /users oplocks - Everyone / Full Control browsable changenotify show-previous-versions