Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: View the full users and groups list System 10.5
I noticed that 10.5 doesn't like my GUID anymore (the one with the same name as my username), as apparently 10.5 doesn't use such groups anymore. But I wasn't sure if it was still on the system or not, so I wanted to find a list of GUIDs. But it turns out /Applications » Utilities » NetInfo Manager.app is no more, and all the ni* applications are gone from Terminal as well.

Thus, we must now use the ds* (directory services) applications in Terminal. As of right now, I don't know of any GUI application equivalent of NetInfo manager, only the applications like dscl, dscacheutil, dsenableroot, and so forth. As an example, here's how to print out all the user accounts:
dscacheutil -q group
Hopefully there will be some GUI interface to these tools developed as time goes on.
    •    
  • Currently 3.78 / 5
  You rated: 4 / 5 (9 votes cast)
 
[77,326 views]  

10.5: View the full users and groups list | 17 comments | Create New Account
Click here to return to the '10.5: View the full users and groups list' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: View the full users and groups list
Authored by: Anonymous on Nov 02, '07 08:00:17AM

Must admit i am going to miss Netinfo Manager.
It was very useful to me.....and have been using it from the off with OS X.

I know Terminal is the way to go but I liked the ability of browsing most of the under the hood settings on client and server machines from one window and make quick tweeks without having to worry about syntax or open various other programs SM, WGM, prop list editors etc.

I am sure they have their reasons but it is another annoying Leopard issue for me.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: jctull on Nov 02, '07 08:47:27AM
I wanted a list of just the group id's the other day. This command will produce a list in the Terminal, assuming you are using the bash shell. You can substitute the grep keyword, PrimaryGroupID, to get other information, like group names, etc. There is probably a more elegant way to do this, but this worked for me.
for i in $(dscl . list /Groups) ; do dscl . read /Groups/$i | grep PrimaryGroupID ; done


[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: jctull on Nov 02, '07 08:49:04AM
It looks like the same can be done with:
 dscacheutil -q group | grep gid: 


[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: ocdinsomniac on Nov 02, '07 08:51:02AM
GUID is actually a partition table type:
http://en.wikipedia.org/wiki/GUID_Partition_Table

The acronym for Group ID is GID:
http://en.wikipedia.org/wiki/Group_identifier_(Unix)

Just being nit-picky.

-systemsboy

[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: aaronfreimark on Nov 02, '07 09:04:00AM

NetInfo's demise is a feature applauded by system admins worldwide. Its replacement is an LDAP-based system stored as plists in /var/db/dslocal/.

Hopefully there will be some GUI interface to these tools developed as time goes on.

Workgroup Manager allows you to do this. Download Server Admin Tools, and run Workgroup Manager. Cancel the login dialog at startup. Choose File > View Directories. Set the preference "Show 'All Records' tab and inspector" if you want to see everything.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: Anonymous on Nov 02, '07 10:25:53AM

That's all cool as far as i am concerned(netinfo to LDAP).......but a GUI would be most useful to view the data quickly and easily.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: Anonymous on Nov 02, '07 10:44:30AM

will check out your hint thx....thank god it is friday.....



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: baltwo on Nov 02, '07 02:23:32PM

Great for sys admins, but what about normal, single-machine users? This is especially disconcerting since Apple's provided little plain language documentation on this (and access control lists) and the only things available are written in Unix-geek-speak.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: jecwobble on Nov 02, '07 10:23:04AM

If anyone reading this has done an upgrade to Leopard (as opposed to archive & install or a clean install), can you post whether or not NetInfo Manager and the ni* command line apps were left behind or removed?



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: aaronfreimark on Nov 02, '07 11:43:16AM

Well, they are in /Previous Systems from my Archive & Install. But they are useless, since there are no NetInfo databases in Leopard anymore. The local directory data is stored in a completely different format, and the old tools can't read the new format.

Use Workgroup Manager if you want a GUI, or learn dscl if you want command line.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: sys0p on Nov 02, '07 12:02:55PM

Most of the things I was used to do with NetIndo Manager can be done within the Systempreferences/Accounts, just do a right click and change home directory and UID,GID. Also in the Accounts Preferences : add another Group with the "+" .. so far no need for dscl and Workgroup manager ...



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: michaelj on Nov 02, '07 12:58:34PM

Net Info is dead. Even with an upgrade, it is removed. Apple has made it clear now for 2 years that this would be the case with Leopard...



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: n1mie on Nov 02, '07 06:47:09PM

The command appears to be removed, but the man entry is still there and list of netinfo commands can still be found with "apropos netinfo".

---
--Chip



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: adrianm on Nov 03, '07 12:51:46AM

If you just wanted to check your own gid (not guid), just type "id" or the older "groups" command.

---
~/.sig: not found



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: ryanjrp on Nov 05, '07 01:31:33PM

You can check your Group membership in the Advanced Options pop-down, by CTRL-Clicking your User name, and selecting Advanced Options. The Group ID field is what you are looking for.

To find the Group Name associated to the Group ID you can do a 'more /etc/group' in Terminal, to see a list of your groups. My Group ID was 20 (Staff). You can now go and issue 'chown :staff my.file' and that will change the associated group for the files you are concerned about not having your proper group permission's.

You can add groups in System Preferences -> Accounts. Just use the Spotlight search in System Preferences and it will circle the Accounts preference pane.

Unlock the pane if necessary and click the + below Login Options. In the New field select Group from the pop-up list. Give your group a name. Once saved/applied, you can now select the group in the Account pane and select who is a member of the group. the 'chown' command will work with the new group name. I have not been able to local where Leopard is storing this new group, as performing 'more /etc/group' does not show the new group I created there.

Further investigation is necessary, but hopefully this helps some people.

Regards,

Ryan Pritchard



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: ryanjrp on Nov 05, '07 02:13:15PM

Follow up... CTRL-Clicking the group you create in the Accounts preference pane lets you see the Group ID and the UUID for the group...

And you can add other groups as members of a group. Though that is probably pointless to have pointed out, since that is base functionality in most UNIX like environtments.



[ Reply to This | # ]
10.5: View the full users and groups list
Authored by: ryanjrp on Nov 05, '07 02:14:51PM

Stupid Threaded viewing mode... Someone gave these tips last Friday...



[ Reply to This | # ]