>>>>> "Sameer" == Sameer Pokarna <[EMAIL PROTECTED]> writes:
>> The primary (default) group of a user is the one whose ID is
>> given in /etc/passwd. All other groups are secondary; files
>> created by the user will belong to the primary group by
>> default.
Sameer> what if i give all the groups a user belongs to in
Sameer> /etc/passwd.
Sameer> username:*:uid:comma seperated list of groups:...
That sounds like a good idea, but unfortunately /etc/passwd doesn't
permit that (at least, none of the /etc/passwd's I've seen do). You
have to give supplementary group ID's in /etc/group.
Sameer> in this case, what is the default group? if i give only
Sameer> one group name in /etc/passwd for a user, how do i specify
Sameer> the other groups that the user belongs to? one way is to
Sameer> create entries in /etc/group and give list of user names
Sameer> there corresponding to the group.
Sameer> it would be much easier if i could give all the group
Sameer> names for a user at one place and maintain the primary
Sameer> there itself. eg, in /etc/passwd.
Sorry, Linux won't allow that. However, you can make your life easier
by using the usermod program (definitely ships with RH, don't know
about other distributions) to add users to supplementary groups.
Maybe you'd like to talk to the POSIX committee about including this
enhancement in the specs ;-)
Regards,
-- Raju
Sameer> Regards, Sameer
>> Regards,
>>
>> -- Raju
>>
>> >>>>> "Shridhar" == Shridhar Daithankar
>> <[EMAIL PROTECTED]> writes:
>>
Shridhar> Hi If you are unfamiliar with text editing, then use
Shridhar> kuser or something similar to that.
>>
Shridhar> Else look at /etc/group and /etc/passwd and you will
Shridhar> understand.
>>
Shridhar> I am stumped about default user. Never occurred to me...
>>
Shridhar> Bye Shridhar
>>
Shridhar> Sameer Pokarna wrote:
>> >> Hi All, >> >> How does a user become a member of multiple
>> groups? And how do >> I set the default group of the person?
>> That is, when the user >> creates a file in the file system,
>> what is the default >> user/group used if this user is in
>> multiple groups? -- Raju Mathur [EMAIL PROTECTED]
Sameer> http://kandalaya.org/
--
Raju Mathur [EMAIL PROTECTED] http://kandalaya.org/
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH