From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96943915220793.tru64-unix-managers.marc@archive.invalid> From: Andreas Bunten Date: Wed, 20 Sep 2000 08:40:18 +0000 To: tru64-unix-managers Subject: problem with group memberships X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96943915220793 hello admins, I just don't seem to understand the workings of the id or groups cmd. look at this output: andreasb@gretchen /home/linux> id uid=2223(andreasb) gid=220(tv1_2) groups=0(system),32(hpt), 252(kartlib),270(farve),666(cache),251(arcinfo),221(webmaster) andreasb@gretchen /home/linux> id andreasb uid=2223(andreasb) gid=220(tv1_2) groups=0(system),32(hpt), 252(kartlib),300(star),270(farve),666(cache),221(webmaster) I invoce 'id' without argument and with my own username. Why does the output differ? without argument I am member of 'arcinfo' but not of 'star'. with my username as argument it's vice versa. without arguments 'id' should give the groups of the running process. most of the groups I belong to are NIS-groups only - my account is also managed via NIS -> > ypcat -k passwd | grep andreasb andreasb andreasb:***:2223:220:Andreas Bunten, TV 1.2,:/home/andreasb:/bin/ksh > ypcat -k group | egrep "arcinfo|star" star star:*:299:henninge,andreasb arcinfo arcinfo:*:251:bettinaj,...,andreasb instead of the three dots, there are quite a lot usernames. the output was 7 lines long on my terminal. some of the users do not exist anymore. can there be a problem? the group 'star' is new. 'arcinfo' is pretty old & I am a member for some time. the above output was produced on the NIS-master which is also his own client. it's DU 4.0D without patches. any idea where the problem is, or what the right procedure for adding groups / users would be? (up to now I added them to the ascii-file and remade the NIS-db. it worked quite well.) how long may the lines in the /var/yp/src/group be? how long may the group-names be? (I read something about 8 chars in /etc/group, but it definitely works with more characters.) yours, andreas bunten