Enabling or disabling export policies for SMB access

You can enable or disable export policies for SMB access on storage virtual machines (SVMs). Using export policies to control SMB access to resources is optional.

Before you begin

The following are the requirements for enabling export policies for SMB:

About this task

When setting up a new CIFS server on your SVM, the use of export policies for SMB access is disabled by default. You can enable export policies for SMB access if you want to control access based on authentication protocol or on client IP addresses or host names. You can enable or disable export policies for SMB access at any time.

Procedure

  1. Set the privilege level to advanced: set -privilege advanced
  2. Enable or disable export policies:
    • Enable export policies: vserver cifs options modify -vserver vserver_name -is-exportpolicy-enabled true
    • Disable export policies: vserver cifs options modify -vserver vserver_name -is-exportpolicy-enabled false
  3. Return to the admin privilege level: set -privilege admin

Example

The following example enables the use of export policies to control SMB client access to resources on SVM vs1:

cluster1::> set -privilege advanced
Warning: These advanced commands are potentially dangerous; use them
only when directed to do so by technical support personnel.
Do you wish to continue? (y or n): y 

cluster1::*> vserver cifs options modify -vserver vs1 -is-exportpolicy-enabled true

cluster1::*> set -privilege admin