Solaris CIFS Administration Guide

ProcedureHow to Modify CIFS Share Properties (sharemgr)

Use this procedure to change properties on a share.

  1. Become superuser, assume an equivalent role, obtain the solaris.smf.value.smb and solaris.smf.manage.smb RBAC authorizations, or use the “SMB Management” RBAC profile, which is part of the “File System Management” profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Modify the CIFS share properties.

    • Modify properties for a single share.


      # sharemgr set-share [-r resource-name] [-d "description"] -s share-path group-name
      

      For example, the following command changes the description for the /files/acme.sales.logs share in the nw-sales group:


      # sharemgr set-share -d "Sales logs for Acme" -s /files/acme.sales.logs nw-sales
      
    • Modify properties for a share group.


      # sharemgr set [-hnv] -P smb [-S option-set] [-p property=value] … \
      [-s share-path] group-name
      

      For example, in domain mode you can configure shares to be published in an AD container. The following command specifies that shares in the nw-sales share group will be published in the default container. Note that filesvr is the machine account of the system that is running the Solaris CIFS service.


      # sharemgr set -P smb -p ad-container=cn=filesvr,cn=Computers nw-sales
      

      If you want to publish shares to a non-default container, you must modify the ACLs of that container to give the Solaris CIFS service permission to publish and unpublish shares.