What version of ontap? 

On Wed, May 9, 2018 at 3:20 PM Parisi, Justin <Justin.Parisi@netapp.com> wrote:
I wouldn't change the permissions to mixed.

I'd try to track down ways to unzip without needing to modify permissions. Is there perhaps a cli flag for the unzip command?

-----Original Message-----
From: toasters-bounces@teaparty.net <toasters-bounces@teaparty.net> On Behalf Of Ehrenwald, Ian
Sent: Wednesday, May 9, 2018 12:28 PM
To: toasters@teaparty.net
Subject: Mac OS X, SMB NTFS, and chmod/chown

Hello
I have users on Mac OS X that are unable to uncompress zip files in SMB shares which sit on top of NTFS security style volumes.  I hadn't heard of this problem until I started migrating my users to new shares, previously they were all on UNIX security style volumes.

If I am understanding my users correctly, they can reliably reproduce this problem this way:
    - In Finder, right click on a folder on a share, select Compress
    - Zip file is created successfully on share
    - Double click on Zip file that was created
    - Mac OS X archiver utility pops up an error box, "Unable to expand (zip name) into (target dir).  (Error 13 - Permission denied).

Examining the Zip file from the command line shows that it is a fully formed file, no corruption, etc.  When I attempt to uncompress the Zip file using the command line on the same machine that created it, I can see that unzip is attempting to chmod the files and directories and getting a Permission Denied error back from the svm.  Output:

UserMachine:z TheUser$ unzip 3\:14\:18.zip
Archive:  3:14:18.zip
   creating: 3:14:18/    chmod (directory attributes) error: Permission denied
  inflating: 3:14:18/FileNameXYZ.FC3.idml  fchmod (file attributes) error: Permission denied
   creating: __MACOSX/    chmod (directory attributes) error: Permission denied
   creating: __MACOSX/3:14:18/    chmod (directory attributes) error: Permission denied
  inflating: __MACOSX/3:14:18/._FileNameXYZ.FC3.idml  fchmod (file attributes) error: Permission denied
  inflating: 3:14:18/FileNameABC.ai  fchmod (file attributes) error: Permission denied
  inflating: __MACOSX/3:14:18/._FileNameABC.ai  fchmod (file attributes) error: Permission denied
  inflating: 3:14:18/FileNameLMN.png  fchmod (file attributes) error: Permission denied
  inflating: __MACOSX/3:14:18/._FileNameLMN.png  fchmod (file attributes) error: Permission denied
  inflating: 3:14:18/FileNameXYZ.FC3.indd  fchmod (file attributes) error: Permission denied
  inflating: __MACOSX/3:14:18/._FileNameXYZ.FC3.indd  fchmod (file attributes) error: Permission denied

warning:  cannot set permissions for __MACOSX/3:14:18/          Permission denied
warning:  set times/attribs failed for __MACOSX/3:14:18/
warning:  cannot set permissions for __MACOSX/          Permission denied
warning:  set times/attribs failed for __MACOSX/
warning:  cannot set permissions for 3:14:18/          Permission denied
warning:  set times/attribs failed for 3:14:18/ UserMachine:z TheUser$

This does make sense, since SMB/CIFS doesn't really understand UNIX ownership and attributes.  Is the solution setting the security style of the volume to Mixed?  Reading in detail about it at https://whyistheinternetbroken.wordpress.com/2017/01/24/mixed-perceptions-multiprotocol-nas makes it seem like that's the right path to follow, but before I start down that trail I wanted to see what other people have done in this situation.

Thanks for your help.


Ian Ehrenwald
Senior Infrastructure Engineer
Hachette Book Group, Inc.
1.617.263.1948 / ian.ehrenwald@hbgusa.com

This may contain confidential material. If you are not an intended recipient, please notify the sender, delete immediately, and understand that no disclosure or reliance on the information herein is permitted. Hachette Book Group may monitor email to and from our network.


_______________________________________________
Toasters mailing list
Toasters@teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters

_______________________________________________
Toasters mailing list
Toasters@teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters