Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1120 KB)
|
# svcadm enable -r smb/server |
This command enables the Solaris CIFS service and any service on which it depends, such as the idmap service.
(Optional) Change the Solaris CIFS service to operate in a different workgroup.
By default, the Solaris CIFS service operates in a workgroup called WORKGROUP.
# smbadm join -w workgroup-name |
Edit the /etc/pam.conf file to support creation of an encrypted version of the user's password for CIFS.
Add the following line to the end of the file:
other password required pam_smb_passwd.so.1 nowarn |
See the pam_smb_passwd(5) man page.
Specify the password for existing local users.
The Solaris CIFS service cannot use the Solaris encrypted version of the local user's password for authentication. Therefore, you must generate an encrypted version of the local user's password for the Solaris CIFS service to use. When the SMB PAM module is installed, the passwd command generates such an encrypted version of the password.
# passwd username |
This example shows how to configure the Solaris CIFS service in workgroup mode. The name of the workgroup being joined is myworkgroup.
# svcadm enable -r smb/server # smbadm join -w myworkgroup |
Then, use the sharesmb property to configure CIFS sharing for an existing ZFS dataset called ztank/myfs.
# zfs set sharesmb=on ztank/myfs |
Finally, install the PAM module and generate the password for user cal.
# passwd cal |
Now, you are ready to have CIFS clients access the CIFS shares on your Solaris CIFS service.