存在共享锁定时无法访问具有权限错误的文件夹
适用于
ONTAP 9
问题描述
- 即使用户具有足够的权限,也无法使用 CIFS 从 Windows 资源管理器访问或删除文件夹。

- 无法获取文件的所有权
- 为客户端 IP 收集的 Sectrace 显示,"访问被拒绝,因为此 对象上有删除处于挂起状态"。
::> vserver security trace trace-result show -vserver SVMNAME
Vserver: SVMNAME
Node Index Filter Details Reason
--------------- ----- -------------------------- ------------------------------
Node1 1 Security Style: - Access is denied because a delete is pending on this object.
Protocol: cifs
Volume: -
Share: test
Path: /test/folder
Win-User: Domain\username
UNIX-User: root
Session-ID: 1664080010000003555
- 锁定状态已确认:
::> vserver locks show -vserver SVMNAME -path /test/folder
Notice: Using this command can impact system performance. It is recommended
that you specify both the vserver and the volume when issuing this command to
minimize the scope of the command's operation. To abort the command, press Ctrl-C.
Vserver: SVMNAME
Volume Object Path LIF Protocol Lock Type Client
-------- ------------------------- ----------- --------- ----------- --------------
VOLNAME
/test/folder test_LIF1 cifs share-level 10.216.41.xx
Sharelock Mode: read-deny_none
- 在 locks 显示输出中找到客户端 IP,运行以下命令以验证是否使用客户端 IP 建立会话。
::> vserver cifs session show -vserver SVMNAME -address <Client IP> -instance
- 数据包跟踪在访问文件夹时显示 STATUS_DELETE_PENDING。
Number Date Source Destination Protocol Info
223727 2020-05-12 10.216.xx.xx 10.216.41.20 SMB2 Create Request File: \folder
223744 2020-05-12 10.216.xx.xx 10.216.41.10 SMB2 Create Response, Error: STATUS_DELETE_PENDING