Has anyone seen this issue? Setting offline flag on a file over CIFS makes it unaccessible. We reied this on 8.2.2 7-mode and 8.3.1 cluster mode.
Description:
Setting the offline flag on a file in a Netapp CIFS share corrupts the file's NTFS security (ACLs and owner), rendering that file inaccessible to all users. If you then manually try to change the owner or add ACLs on this file, you get an “Access denied” error.
Repro steps:
On any Windows desktop,
- Map a Netapp CIFS share.
- Create a file in this share.
- Verify that it has valid ACLs and owner.
- Right click on the file and select Properties.
- Go to the ‘Security’ tab and click on Advanced.
- Verify that the owner and permission entries are valid.
- $file = Get-Item <File-Path>
- Use the full network path for <File-Path>.
- $file.Attributes = $file.Attributes -bor [System.IO.FileAttributes]::Offline
- This sets the offline flag on the file. You should see a grey ‘X’ on the file’s icon, indicating that it’s an offline file.
- Run $file.Attributes to confirm if Offline attribute is set.
- You will get an ‘Access denied’ error.
- Permission entries list will be empty and you’ll see ‘Unable to display owner’ for the owner.
- You will get an ‘Access denied’ error.