Hi there,
Our site currently has many different users assigned to many
different secondary groups so much so that within the /etc/group file we
have duplicate entries of groups because they have so many users as members
to them.
example...
group1:*:189:user1,user2,user20
group2:*:190:user1,user2,user3,user4,user5,user6,user7,user8,user9,user10,us
er11,user12,user13,user14,user15,user16,user17
group2:*:190:user18,user19,user20
group3:*:191:user1,user2,user20
group4:*:192:user1,user2
Supposing that I am user20, i would therefor be a member of the groups
group1 & group2.
Given that I'm in the situation above I then login as user20 and run the
command 'newgrp group2', the newgrp command prompts me for a group password.
In the same situation I login as user20 and run 'newgrp group1' or 'newgrp
group3' the command succeeds and my new shell is created with my primary
group set accordingly to the group I specified.
I can only assume that newgrp is reading only the entries found on the first
line it finds in /etc/group.
I did try and manually edit the /etc/group file and put all the users onto
one group line but unfortunetly the usermod command seems to adjust the file
layout back to its original form...i.e back to the groups being split across
mulitple lines.
Any suggestions on a workaround or a solution would be very welcome.
Thanks
Graeme Cowie
Acxiom UK Technical Support
gcowie_at_acxiom.co.uk
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.
If you have received this communication in error, please
re-send this communication to the sender and delete the
original message or any copy of it from your computer
system.
Received on Mon Mar 26 2001 - 11:10:43 NZST