November 2005
Beginner to intermediate
528 pages
24h 11m
English
To create a group with dscl, you’ll need to create a directory under /groups and set the gid and passwd properties. An asterisk (*) specifies no password; be sure to quote it so that the shell does not attempt to expand it. The following creates a group named writers as GID 5005 with no password and no members:
$sudo dscl . create /groups/writers gid 5005$sudo dscl . create /groups/writers passwd '*'
Read now
Unlock full access