Skip to main content
NetApp Knowledge Base

Is it possible to enable encryption for one CIFS particular share

Last Updated:

Applies to

  • ONTAP 9
  • CIFS
  • AES Encryption


Yes, we can enable encryption for a particular share with the help of below steps.

  1. Run following command to enable encryption for the desired share.
cluster1::> vserver cifs share properties add -vserver <VSERVERNAME> -share-name <SHARENAME> -share-properties encrypt-data
  1. Have the users disconnect and reconnect to the shares manually in order to apply the changes.
  1. Run the below command to confirm that encryption is working for all CIFS sessions.
Cluster01::> vserver cifs session show -vserver <VSERVERNAME> -fields smb-encryption-status
  • Encryption won't be in effect unless the client reconnect to the shares as the existing sessions are unencrypted.
  • SMB encryption is supported with SMB3 and above
  • As encryption is enforced at the share-level rather than the server-level, the sessions will be partially encrypted

Additional Information

vserver cifs share properties add

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.