problem with group memberships

From: Andreas Bunten <andreasb_at_unixmail.pz-oekosys.uni-kiel.de>
Date: Wed, 20 Sep 2000 10:40:18 +0200 (MET DST)

hello admins,

I just don't seem to understand the workings of the id or groups cmd.
look at this output:

andreasb_at_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_at_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
Received on Wed Sep 20 2000 - 08:41:50 NZST

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