Managing SMB File Sharing and Windows Interoperability in Oracle Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Enable the SMB Print Service

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create and publish a share called print$.

    The share path can point to any directory, which is used as the spool path for all SMB shared printers.

    # zfs share -o share.smb=on -o share.path=/pool/dataset pool/dataset%print$
  3. Set permissions on the directory to permit root access.
    # chmod A=user:root:full_set:allow pathname
  4. Enable the SMB print service.
    # sharectl set -p print_enable=true smb
  5. Verify that the SMB print service is enabled.
    # sharectl get -p print_enable smb

    If the SMB print service is enabled, the print_enable property is set to true.

  6. (Optional) Refresh the SMB service if a CUPS printer is added after the SMB print service is first enabled.
    # svcadm refresh smb/server
Example 3-10  Enabling the SMB Print Service

This example assigns the print$ share to an existing directory, /tank/printspool, and enables the SMB print service.

# mkdir /tank/printspool
# zfs share -o share.smb -o share.path=/tank/printspool tank%print$
# chmod A=user:root:full_set:allow /tank/printspool
# sharectl set -p print_enable=true smb