I am working on a shell script for account creation on a Tiger
Server v10.4.4. I am noticing something that strikes me as odd,
but may be normal.
If I look at an account in NetInfo Manager, the gid for the account
is 20. This account has also been assigned a 2nd gid, but it is
not displayed in NetInfo Manager. If I look at this same account
in Workgroup Manager, in the Groups tab on the right-hand side of
the window, the 2nd gid is listed, but the gid from the same
account in NetInfo Manager (20) is not.
Why would each program only show one (1) of two (2) gids assigned
to an account?
Is it the case that when you're looking at NetInfo, you're just
looking at the user record, and thus pulling out the primary gid,
whereas when you're looking at Workgroup Manager, you're also seeing
any group records that have that user as a member?
The primary gid from NetInfo should appear in the Primary Group ID at
the top of the user record in Workgroup Manager when looking at the
Groups tab.
To grab or create group membership in NetInfo, look at /groups and
the users attribute, not just the /user record and the gid attribute.
--
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G