What is the mMac equivalent to groupmod

1

I can find 1000s of answers for groupadd and usermod, but what I want to do is change the name of a group

groupmod -n biostat 1387956079

How do I do this in Mac OS/X 10.9?

Greg Dougherty

Posted 2016-03-16T15:56:33.923

Reputation: 111

Answers

1

Take a look at dseditgroup(8), it should do what you need.

To change the name of a group with name oldname to biostat, you would use something like:

sudo dseditgroup -o edit -n .  -r biostat -T group oldname

Leland Wallace

Posted 2016-03-16T15:56:33.923

Reputation: 151