This is the method in Linux:
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/mail
How is it done in OS X?
groupuser-account
This is the method in Linux:
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/mail
How is it done in OS X?
Best Answer
Found the answer that works from in a 4 year old post on this board. This creates the user, and the group, with the specific gid.
It can be checked, because it runs silently, with the following. The command in my case gives the following output.
Ok, for some reason it doesn't actually add a the group - so you have to go into the GUI, System->preferences->Users/Groups and add the group, and set it's UID at the top, to 5000 - then it all works