Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Creating Local user with ARD

Hey Everyone,

I was wondering if anyone knew how to create local users by using a unix command within Apple Remote Desktop.

I need to create local users on 30 machines, and I was hoping to save some time by doing it remotely.

Any ideas?

Thanks!

Xserver, Mac OS X (10.6.2)

Posted on Jun 2, 2010 9:16 AM

Reply
Question marked as Best reply

Posted on Jun 2, 2010 9:25 AM

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
3 replies
Question marked as Best reply

Jun 2, 2010 9:25 AM in response to 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

Creating Local user with ARD

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.