From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079072815861.tru64-unix-managers.marc@archive.invalid> From: Charles Sebold Date: Thu, 02 Sep 1999 19:00:41 +0000 To: tru64-unix-managers Subject: "groups" command oddities X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079072815861 Managers: I have an odd question about the "groups" command. I'm running 4.0D, patch level 3. Here is the output of the command, run two different ways (seboldcr is my username): $ groups users system mslive mstest llllive llltest ae_users lllpower mspower prog fndtest msdev helpdesk $ groups seboldcr system users users users users users mslive mstest llllive llltest ae_users lllpower mspower prog fndtest msdev helpdesk Notice how the group "users" is repeated 5 times in the second version of the command. Any idea why this would be? In the /etc/groups file, my name only shows up once in users. This is also the case with "id -Gn": $ id -Gn users system mslive mstest llllive llltest ae_users lllpower mspower prog fndtest msdev helpdesk $ id -Gn seboldcr system users users users users users mslive mstest llllive llltest ae_users lllpower mspower prog fndtest msdev helpdesk (I tried that because in Linux I know that the two commands are basically identical, and it would seem that in Tru64 Unix they at least have identical problems, for me.) This is an issue because we have scripts in our database system that have to check group membership this way (rather than using system calls). I will summarize. -- Charles Sebold, UNIX Systems Specialist LCMS - Office of Information Systems *** Opinions expressed herein are not necessarily *** *** those of the Lutheran Church - Missouri Synod *** -- 21st of Elul, 5759 -- Save the Whales -- Harpoon a Honda.