如何从现有导出策略规则中删除写入访问权限

适用场景

  • ONTAP 9
  • NFS
  • 导出策略

描述

此 KB 解释了如何从当前导出策略规则配置中删除写访问权限

操作步骤

  1. 确认当前导出策略规则配置
cluster1::*> export-policy rule show -clientmatch 192.168.0.100 -ruleindex 1 -instance
 
Vserver: svm1_cluster1
Policy Name: default
Rule Index: 1
Access Protocol: nfs3, nfs4, cifs, nfs
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: 192.168.0.100
RO Access Rule: any
RW Access Rule: any
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: any
Honor SetUID Bits in SETATTR: true
Allow Creation of Devices: true
NTFS Unix Security Options: fail
Vserver NTFS Unix Security Options: use_export_policy
Change Ownership Mode: restricted
Vserver Change Ownership Mode: use_export_policy
Policy ID: 12884901889
  1. 删除写入访问权限
cluster1::*> vserver export-policy rule modify -vserver svm1_cluster1 -clientmatch 192.168.0.100 -ruleindex 1 -rwrule never -policyname default
cluster1::*>
  1. 确认配置更改是否已生效。
cluster1::*> vserver export-policy rule show -clientmatch 192.168.0.100 -ruleindex 1 -instance
 
Vserver: svm1_cluster1
Policy Name: default
Rule Index: 1
Access Protocol: nfs3, nfs4, cifs, nfs
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: 192.168.0.100
RO Access Rule: any
RW Access Rule: never
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: any
Honor SetUID Bits in SETATTR: true
Allow Creation of Devices: true
NTFS Unix Security Options: fail
Vserver NTFS Unix Security Options: use_export_policy
Change Ownership Mode: restricted
Vserver Change Ownership Mode: use_export_policy
Policy ID: 12884901889

合作伙伴备注

PartnerNotes_Text

追加信息

  • never -对于来自符合客户端匹配条件的客户端的传入请求、不允许对卷进行写入访问、无论该传入请求的有效安全类型是什么(由规则确定)。

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。