AHH! That looks like it! We may be able to work around the user issue as long as we can force the group.
Much appreciated!!
Jeff Mery - MCSE, MCP National Instruments
--------------------- sunrise > sunset ---------------------
From: "Borzenkov, Andrey" andrey.borzenkov@ts.fujitsu.com To: Jeff Mery jeff.mery@ni.com Cc: "toasters@mathworks.com" toasters@mathworks.com Date: 08/26/2009 12:06 AM Subject: RE: Force directory mode, uid, gid, & mask
You can force group by using CIFS share -forcegroup option. You also can indirectly control file creation mode by using CIFS share -umask and/or -dir_umask ,-file_umask options. It is opposite to SAMBA - i.e. to set default filemode to 644 you apparently need set -file_umask=133
I do not know of any way to force user of newly created files.
Also keep in mind that this applies only to files created via CIFS share. Files created by NFS clients will get whatever Unix client specify.
? ????????? / With best regards / Mit freundlichen Grüßen
--- Andrey Borzenkov Senior system engineer -----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Jeff Mery Sent: Wednesday, August 26, 2009 1:15 AM To: Jeff Mery Cc: owner-toasters@mathworks.com; toasters@mathworks.com Subject: Re: Force directory mode, uid, gid, & mask
I failed to mention that all exports are currently from unix security styled qtrees. Switching to ntfs is an option.
Hi All,
First the basics - this is on a 3040A running 7.3.1.1P2. We also have a dev environment that is a 940C running 7.3.1.1P2 (not that the hardware should matter). Anyway...
With ONTAP, is there a way to force the directory mode, uid, gid and mask
of files? Here's our use-case:
We currently have numerous Solaris systems that have been running Samba for years. As part of an upgrade, we're looking to move this
Samba-shared
data from the local Solaris systems to our 3040A. The Solaris boxes
would
mount things up via NFS and users would hit the data via CIFS from our filers.
Most of the existing Samba shares are very vanilla. However, we have
more
than a handful that are setup with the aforementioned options. An
example
Samba config would be as follows:
- Force User Creation = foo
- Force Group = bar
- Create Mask = 644
- Force Directory Mode = 775
Is there any way to accomplish this on a filer? I'm working through the historical business reasons for all of these scenarios. It may be possible to change/update them, but I figured I'd check here first.
There is the anon= option for the NFS exports, but that's not really applicable here. We need the data dropped off via CIFS to have the
forced
options above when accessed via NFS. I haven't been able to find
anything
at NOW or in the documentation.
Jeff Mery - MCSE, MCP National Instruments
--------------------- sunrise > sunset ---------------------