1 Apr
2002
1 Apr
'02
17:14
Axel Zindler wrote:
was wondering how to create files with a different gid then the standard group.
[...]
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
This is definitely the wrong list for such a question ;) But anyway: change the associated group of the direcory you want to share the files in to the desired group and chmod it SGID. (chmod 2770 for example) That's it. New files will be created with group owenership according to the directory's group. Bjoern