跳转到主内容

已弃用的选项命令 cifs.restrict_anonymous 。 enable 与 cifs.restry_anonymous 有何区别?

Views:
4
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
7dot<a>用于翻译</a>
Last Updated:

适用场景

Data ONTAP 7 及更早版本

问题解答

optionscifs.restrict_anonymous.enable命令表示已弃用。

这两个命令都会更改cifs.restrict_anonymous此选项。以下内容有助于了解具体操作方式。

options cifs.restrict_anonymous.enable 此时将显示以下消息:

<on>
此选项已弃用;请改用options cifs.restrict_anonymous 1
此选项的可能值为
0 。无特殊限制
1.枚举受限
2.访问完全受限

<off>
此选项已弃用;请改用options cifs.restrict_anonymous 0
此选项的可能值为
0 。无特殊限制
1.枚举受限
2.访问完全受限

cifs.restrict_anonymous.enable由于直接更改了这些选项,您将看到选项 did change :

开启
FILER>options cifs.restrict
cifs.restrict_anonymous 0
cifs.restrict_anonymous.enable off
FILER>
FILER>
FILER>options cifs.restrict_anonymous.enable on
This option is deprecated; using 'options cifs.restrict_anonymous 1' instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted
FILER>
FILER>
FILER>options cifs.restrict
cifs.restrict_anonymous 1
cifs.restrict_anonymous.enable on
FILER>

关闭
FILER>options cifs.restrict
cifs.restrict_anonymous 1
cifs.restrict_anonymous.enable on
FILER>
FILER>
FILER>options cifs.restrict_anonymous.enable off
This option is deprecated; using 'options cifs.restrict_anonymous 0' instead.
Possible values for this option are
0. No special restrictions
1. Enumeration is restricted
2. Access is fully restricted
FILER>
FILER>
FILER>options cifs.restrict
cifs.restrict_anonymous 0
cifs.restrict_anonymous.enable off
FILER>

将选项更改为 2 的唯一方式是使用非弃用选项cifs.restrict_anonymous命令。

追加信息

不适用

 

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.