Go to main content

Managing SMB File Sharing and Windows Interoperability in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017

Commonly Used SMB File Sharing Commands

Managing SMB File Sharing

This table provides the basic command syntax for performing some common SMB file sharing tasks in the Oracle Solaris 11.3 release. For more information, see the smbadm(1M), smb(4), share(1M), and mount(1M) man pages.

Enable SMB sharing for ZFS file system on the dataset
# zfs set share.smb=on pool/dataset
Create an SMB share having no default property value
# zfs share -o share.smb=on pool/dataset%share-name
Find share to mount from the server
# smbadm show-shares server
Mount share on a directory
# mount -F smbfs //server/share mount-point
Remove an SMB Share
# zfs destroy pool/dataset%share-name
List all SMB mounts
# mount -v | grep 'type smbfs'
View all the SMB environment property values
# sharectl get smb
Create an SMB group
# smbadm create-group group-name
Add a member to an SMB group
# smbadm add-member -m member-name group-name
Remove member from an SMB group
# smbadm remove-member -m member-name group-name
Modify an SMB group property
# smbadm set-group -p property=value group-name
Store SMB persistent passwords
# smbadm add-key -u username
Remove SMB persistent passwords
# smbadm remove-key -u username