tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Andreas Bunten <andreasb () gretchen ! pz-oekosys ! uni-kiel ! de>
To: tru64-unix-managers
Subject: problem with group memberships
Date: Wed, 20 Sep 2000 08:40:18 +0000	[thread overview]
Message-ID: <96943915220793.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~2000-09-20  8:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox