* problem with group memberships
@ 2000-09-20 8:40 Andreas Bunten
0 siblings, 0 replies; only message in thread
From: Andreas Bunten @ 2000-09-20 8:40 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-09-20 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-20 8:40 problem with group memberships Andreas Bunten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox