[Samba] writing a file keep the group unchanged

2004-07-22 Thread Nina Pham
Hi, via samba, I write a file. However, after I write a file, the file 
is owned by my primary group. The file is used to be owned by a group 
whom I belong to, but that group is not my primary group. Is there any 
way I can write that file but still keep the group ownership? Thanks

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] writing a file keep the group unchanged

2004-07-22 Thread Craig White
On Thu, 2004-07-22 at 13:23, Nina Pham wrote:
 Hi, via samba, I write a file. However, after I write a file, the file 
 is owned by my primary group. The file is used to be owned by a group 
 whom I belong to, but that group is not my primary group. Is there any 
 way I can write that file but still keep the group ownership? Thanks
---
there are various ways of handling it.

With specific answer to your question, chmod g+s /path/to/samba/share -R
info chmod for specifics on the command

or

force group = NAME_OF_GROUP

I tend to use 'inherit permissions = yes' in each share.

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba