Adding Users to a Group

You can add users to the group by appending values to the users property with nicl’s -merge switch at the command line (or by using the merge command interactively). If the users property does not exist, nicl creates it. If the users are already part of the group, they are not added to the list (contrast this with the -append command, which can result in the same user being added more than once if the command is invoked multiple times).

# nicl / -merge /groups/writers users bjepson rothman

Tip

To give someone administrative privileges, add that user to the admin group (/groups/admin). This gives him or her the ability to use sudo and install software that requires such privileges.

Get Mac OS X for Unix Geeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.