Group Management in MAC-OS

By default /etc/group is consulted only in single-user mode, so that is not the way to deal with group membership under MAC-OS.

The command line utility dseditgroup is the way to go:

dseditgroup -o create -i 1000 newgroup

will create a new group called newgroup with gid 1000

dseditgroup -o edit -a someuser newgroup

Will add an (existing) user someuser to newgroup

dsedtigroup -o read newgroup

will display the properties of the group newgroup

dseditgroup -o delete newgroup

will delete the group newgroup.

Comments are closed.