I had trouble getting the home directory to be created properly in some cases. Please test on
one machine before you blast through to your lab. This creates a new user called 'New User'
with a shortname of 'newuser'.
dscl / -create /Users/newuser
dscl / -create /Users/newuser UserShell /bin/bash
dscl / -create /Users/newuser RealName "New User"
dscl / -create /Users/newuser UniqueID 510
dscl / -create /Users/newuser PrimaryGroupID 1000
dscl / -create /Users/newuser NFSHomeDirectory /Users/newuser
This next line creates the password exactly as you type it. It is case sensitive. The sample creates the password 'PASSWORD' in uppercase.
dscl / -passwd /Users/newuser PASSWORD
If you want to add admin privileges to the user:
dscl / -append /Groups/admin GroupMembership newuser
Tuesday, August 5, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment