The OpenSolaris CIFS Server provides support for the CIFS/SMB LM 0.12 protocol and MSRPC services in workgroup and domain mode.
The official project page is the ideal starting point to look for information about installing and using the CIFS Server and Client components in Solaris. In this blog I will describe how to quickly configure the CIFS Server to be able to share folder between your Solaris and your Windows environments. I will use the new, and very simple, sharing semantics introduced in the last versions of the ZFS file system.
What's impressive of these tools is the ease of use and administration. Both ZFS commands and CIFS Server commands are few, easy and intuitive. Sharing a ZFS file system is a no brainer and just few one-time configuration steps are necessary to bring your CIFS Server up and running.
# zfs create file-system-name
Once the file system is created, we configure the SMB sharing:
# zfs set sharesmb=on file-system-name
As described in the official ZFS documentation (for Solaris Express) or in the zfs(1M) man page, the sharesmb property can be set to on, off or [options]. The last syntax is useful to pass parameters to the CIFS server. The most useful is the name parameter, which lets you override the automatic name generation for the SMB share:
# zfs set sharesmb=name=smb-name file-system-name
The automatic name generation works fine but sometimes it must change illegal characters which appear in the dataset name.
CIFS service administrator guide. In my case the workgroup mode is fine and that's the configuration I'll detail here.
# svcadm enable -r smb/server
# smbadm join -w workgroup/etc/pam.conf file and add the following entry:
other password required pam_smb_passwd.so.1 nowarn/etc/pam.conf was reconfigured. The passwd command will take care of that:
# passwd usersharesmb property.