Unable to delete a folder (reported as symlink, from a snapmirror copy)
Applies to
- ONTAP 9
- SnapMirror
- CIFS
Issue
- After creating a SnapMirror volume from one system to an another, the folder
dst\sub
(junction path
(reparse point
)) of a nested volume in the destination volume can not be deleted
::> volume show -vserver svm0 -volume src,sub,dst -fields security-style,unix-permissions,junction-path-source,type,junction-path
vserver volume security-style unix-permissions junction-path junction-path-source type
------- ------ -------------- ---------------- ------------- -------------------- ----
svm0 dst ntfs ------------ /dst RW_volume RW
svm0 src ntfs ------------ /src RW_volume RW
svm0 sub ntfs ------------ /src/sub RW_volume RW
::> vserver security file-directory show -vserver svm0 /dst/sub
Vserver: svm0
File Path: /dst/sub
File Inode Number: 97
Security Style: ntfs
Effective Style: unix
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
UNIX User Id: 0
UNIX Group Id: 0
UNIX Mode Bits: 777
UNIX Mode Bits in Text: rwxrwxrwx
ACLs: -
- Different views of the folder dst\sub (
junction path
(reparse point
))
Total Commander (will report it is a LNK)
Windows Explorer (will report it as a shortcut)
Command Prompt (will report it is as a junction)
Packet Trace
No. Time Protocol smb2.filename smb2.reparse_tag Info
x x SMB2 Find Request SMB2_FIND_ID_BOTH_DIRECTORY_INFO Pattern: sub
x x SMB2 sub REPARSE_TAG_MOUNT_POINT Create Response File: ;Find Response
- Microsoft Windows error messages when trying to access \ modify (permission/ownership) \ delete
dst\sub
Windows cannot access \\svm0\nsroot\dst\sub.
You do not have permission to access \\svm0\nsroot\dst\sub.
Object name: \\svm0\nsroot\dst\sub. You must have Read permissions to view the properties of this object.
An error occurred while applying security information to: \\svm0\nsroot\dst\sub. Failed to enumerate objects in the container. Unable to set owner. Access is denied.
Folder name: \\svm0\nsroot\dst\sub. Folder access denied. You need permission to perform this action.
- ONTAP error messages when trying to take ownership of
dst\sub
Security can be applied only on a file/directory