SUMMARY newgrp behaviour on Tru64 OSF V4.0f

From: gcowie - Graeme Cowie <GCOWIE_at_acxiom.co.uk>
Date: Fri, 30 Mar 2001 15:25:07 +0100

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_at_bouyguestelecom.fr
Dr. Thomas Blinn
Ann Majeske


> -----Original Message-----
> From: gcowie - Graeme Cowie
> Sent: 26 March 2001 11:59
> To: 'tru64-unix-managers_at_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_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 Fri Mar 30 2001 - 16:02:37 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT