I guess my search-foo is weak today because I can't seem to figure this out and 
Google has been no help.

I created a CIFS share on my new NAS using the following method:

# zfs create -o casesensitivity=mixed -o sharesmb=name=storage -o quota=275G 
tank/storage
# cd /tank/storage
# chmod A=group@:rwxpdDaARWcCos:fd:allow .
# chgrp storage .

Now users that are members of the "storage" group can connect to and read/write 
from the CIFS share at /tank/storage. When users write to this directory 
however, the files are written using the primary group. For example:

# id jdoe
uid=143(jdoe) gid=1(other)
# grep storage /etc/group
storage::200:jdoe

when "jdoe" connects to the share and writes files they are written w/a UID of 
143 and GID of 1. For example:

# ls -lav .DS_Store
----rwx---+  1 jdoe     other       6148 Mar 28 14:23 test_file
     0:group@:read_data/write_data/append_data/read_xattr/write_xattr/execute
         /delete_child/read_attributes/write_attributes/delete/read_acl
         /write_acl/write_owner/synchronize:inherited:allow

How can I get these files to write with a group ownership of "storage" for this 
share? This server will host many CIFS shares, each requiring their own group 
permissions. For some users I can simply set the primary group as the same 
group that I use for the share. There are other users who need access to 
multiple CIFS shares however so this won't work for all users. I need a way to 
specify that all files written to a share via CIFS need a specific group 
ownership (just like I did with the permissions).

Thanks in advance for any help that you can provide...
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to