Hi all, "problem" solved - newgroup was exactly the cmd I was looking for (hours). Thanks for the quick help. BTW in no section of doc about permissions (I've read) this cmd is mentioned - maybe it can go into the SuSE Reference manual. axel Am Montag, 1. April 2002 16:26 schrieben Sie:
Axel Zindler schrieb:
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
Hi Axel,
there should be different means of doing that: 1) Change your primary group from within yast (you'd need to create a new group prior to that) 2) edit the user into a new group (same as above) and use the command "newgrp" to change your group identety.
cannot say much more to the latter, see the man pages of "newgrp" and "su". Just dug that up for you.
Juergen