
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

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'

On Monday 01 April 2002 07:11 am, Alex Levit wrote:
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.
Nor, apparently do these books provide the answer the user was searching for, but then neither did you. If it is indeed samba, the answer he wanted was in the "force group" directive as seen in the sample below. But we don't know that it was samba, do we... [w0] comment = SoftwareStorage path = /raid/DataSys force group = +projectx read only = No create mask = 0660 force create mode = 0660 security mask = 0770 directory mask = 0770 force directory mode = 0770 directory security mask = 0770 -- _________________________________________________ No I Don't Yahoo! And I'm getting pretty sick of being asked if I do. _________________________________________________ John Andersen / Juneau Alaska

Hi guys... is there any Vrs (pros vrs cons) between SuSE Firewall and another commercial products like Astaro ? or hardware solutions ? Thanks --ed
participants (4)
-
Alex Levit
-
Axel Zindler
-
John Andersen
-
Linux - User