[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getting users IDs list
On other *nix systems they are found in the /etc folder. OS X has the
proper files there, but user land stuff is not included in either the groups
or passwd files. They are stored in data files in the netinfo db
(/var/db/netinfo/local.nidb/Status.XXXX where XXXX is some number). These
are binary files and you must have root (or sudo) priv to get to them. If
you can get to them, it is easy to see what is inside. Just fire up your
favorite hex editory and, for example, I can see that my the user rodney is
uid 501 (starts at position 0x38), gid 20 (at 0x7b), in /Users/rodney, shell
is bin/tcsh (never got around to changing that one), my password hint (in
plain text!), my shadow password, my login picture, my .... You get the
idea. If you want to use this information, you must either 1) have root
priv or 2) use netinfo.
R
-----Original Message-----
From: macosx-dev-bounces@xxxxxxxxxxxxx
[mailto:macosx-dev-bounces@xxxxxxxxxxxxx] On Behalf Of ?????? ??????
Sent: Wednesday, March 03, 2004 6:50 PM
To: macosx-dev@xxxxxxxxxxxxx
Subject: getting users IDs list
Hi
Maybe this question is little stupid, but how can I get a list of
users/groups IDs available on my system?
Thanks.
Vic.
_______________________________________________
MacOSX-dev mailing list
MacOSX-dev@xxxxxxxxxxxxx
http://www.omnigroup.com/mailman/listinfo/macosx-dev