From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98596812306150.tru64-unix-managers.marc@archive.invalid> From: gcowie - Graeme Cowie Date: Fri, 30 Mar 2001 14:25:07 +0000 To: tru64-unix-managers Subject: SUMMARY newgrp behaviour on Tru64 OSF V4.0f X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98596812306150 Just a quick summary to close this one off... I've used an alternative solution which omits the use of newgrp. A custom patch would be required to fix newgrp...or upgrading to the latest patch level. Thanks go to the following for there help in my dilema. LHERCAUD@bouyguestelecom.fr Dr. Thomas Blinn Ann Majeske > -----Original Message----- > From: gcowie - Graeme Cowie > Sent: 26 March 2001 11:59 > To: 'tru64-unix-managers@ornl.gov' > Subject: newgrp behaviour on Tru64 OSF V4.0f > > 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, > user11,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@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.