This discussion is locked
-
All replies
-
Helpful answers
-
Jun 2, 2010 9:25 AM in response to Wielengakby Wielengak,solved my own problem!
for anyone else who may need the solution:
10
Use the dscl command. This example would create the user "luser", like so:
dscl . -create /Users/luser
dscl . -create /Users/luser UserShell /bin/bash
dscl . -create /Users/luser RealName "Lucius Q. User"
dscl . -create /Users/luser UniqueID "1010"
dscl . -create /Users/luser PrimaryGroupID 80
dscl . -create /Users/luser NFSHomeDirectory /Users/luser
You can then use passwd to change the user's password, or use:
dscl . -passwd /Users/luser password
You'll have to create /Users/luser for the user's home directory and change ownership so the user can access it, and be sure that the UniqueID is in fact unique.
This line will add the user to the administrator's group:
dscl . -append /Groups/admin GroupMembership luser
Message was edited by: Wielengak -
-
Jun 2, 2010 10:01 AM in response to Wielengakby foilpan,that will all work. if you want a pkg version, check out the createUser package here:
http://www.afp548.com/filemgmt/visit.php?lid=76