当存在共享锁定时,无法访问具有权限错误的文件夹
适用于
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 show输出中找到客户端IP、运行以下命令验证是否使用客户端IP建立会话。
::> vserver cifs session show -vserver SVMNAME -address <Client IP>
-instance
- 数据包跟踪在访问文件夹时显示 STATE_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