The reason behind this question is probably beacause you're trying to get Samba to work and you have multiple groups, but any files or directories created by your users get their login default GID. Answer lies in linux/unix permission settings, so read up on it. chmod g+srw /path_to_your_directory And as for smb.conf [data] comment = data path = /path_to_your_directory create mask = 0660 directory mask = 0770 browsable = yes write list = @data Unfortunately all the books I have read on Samba never give an answer to a Linux newbie that decided to save some company's money for his upcomming raise by utillizing Samba in corporate network. On Monday 01 April 2002 06:55, Axel Zindler wrote:
Hi,
was wondering how to create files with a different gid then the standard group.
Suppose one wants to share files with a second (or third and so far) user. They create a common group different from (standard) users, ie. projectx. If both users are now members of projectx and keep the membership of users the files will be written always with the uid of users, ie:
-rw-r--r-- 1 axel users 16 Mär 31 22:50 test.txt
How is it possible to edit a file and save files in that way to achive the following without doing a chgrp after the file is saved?
-rw-r--r-- 1 axel projectx 16 Mär 31 22:50 test.txt
-- Alex Levit Senior Network Engineer Kel-Tek Inc. TEL: 626-571-6927 FAX: 626-571-8794 'Alex@kel-tek.com'