in X-Geek

How To Create Groups in OS X?

A question for all your OS X/UNIX geeks:

I had to create a new group on Kelly’s Mac so that she could write to an NFS share. After poking around NetInfo, I created a group I thought would work but the group didn’t show up on Kelly’s group list. Finally, I duplicated an existing group and changed the values accordingly. That seemed to work.

How does one add users to a group using NetInfo? I can’t figure out how to get the user list to show multiple entries.

  1. These links should help:

    Open Directory and the dscl Tool
    http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/additionalfeatures/chapter_10_section_9.html

    OSXFAQ: Add a New Group (bash script)
    http://www.osxfaq.com/tips/unix-tricks/week91/thursday.ws

    OSXFAQ: Add Users to a Group (bash script)
    http://www.osxfaq.com/Tips/unix-tricks/week91/friday.ws

    Master Mac OS X Users and Groups by Making Your Mac Think It’s a Server
    http://www.peachpit.com/articles/article.asp?p=700592&rl=1

Comments are closed.