
jeff.mery at ni
Aug 26, 2009, 6:37 AM
Post #3 of 3
(2706 views)
Permalink
|
|
RE: Force directory mode, uid, gid, & mask
[In reply to]
|
|
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 [at] ts> To: Jeff Mery <jeff.mery [at] ni> Cc: "toasters [at] mathworks" <toasters [at] mathworks> 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 [at] mathworks [mailto:owner-toasters [at] mathworks] On Behalf Of Jeff Mery Sent: Wednesday, August 26, 2009 1:15 AM To: Jeff Mery Cc: owner-toasters [at] mathworks; toasters [at] mathworks 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 ---------------------
|