Managing SMB File Sharing

The following list shows the basic command syntax for performing some common SMB file sharing tasks in the Oracle Solaris 11.4 release. For more information, see the smbadm(8), smb(5), share(8), and mount(8) 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