Add a new user with a specific uid and gid We have a mixed mac and linux environment at work, to make life easy we use the same uid, gid for each user both on the mac and linux side (I believe this is a standard practice).  

The problem is, when you add a new user on a mac, there is no way to set the uid and gid "while" you are creating it, so you need to add the user then set the uid/gid and then go and execute a few find ... -exec ...{} ... commands to change the owner and permissions on the home directory for the user that you already made, 

Is there a better solution for this?
One solution would be to write a simple script to do the whole job at once.   

dscl . -create /Users/ali UniqueID 549 PrimaryGroupID 320 RealName "Ali Moeeny" 


Or something like that.