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.

Is there a way to mass deploy a stand alone account using remote desktop?

I am looking for a way to create a stand alone account on my computers in my lab without having to login as the admin on each computer and go through system preferences. Is there a way to mass deploy a stand alone account using remote desktop?

iMac, OS X Mavericks (10.9.4)

Posted on May 4, 2015 9:12 AM

Reply
7 replies

May 5, 2015 4:14 AM in response to just a teacher

There are a number of ways which will involve using the command line. You can send the commands using ARD's 'Send UNIX Command' feature. Here's one of many sites outlining how this can be done:


http://www.maclife.com/article/columns/terminal_101_creating_new_users


Obviously the specifics need to change based on your site's requirements. Test thoroughly first before rolling it out wholesale. Alternatively you could hire the services of an experienced Consultant who would help you with it.

May 5, 2015 8:08 AM in response to Antonio Rocco

dscl . create /Users/(username)

dscl . create /Users/(username) UserShell /bin/bash

dscl . create /Users/(username) RealName "(username)”

dscl . create /Users/(username) UniqueID 503

dscl . create /Users/(username) PrimaryGroupID 1000

dscl . create /Users/(username) NFSHomeDirectroy /Local/Users/(username)

dscl . passwd /Users/(username) (PASSWORD)



and I sent it in Remote Deskop using Unix

May 5, 2015 10:26 AM in response to just a teacher

Appears to be something not quite right somewhere? Try this instead and let's use "student" as the example:


Create the User in the local directory:

dscl . -create /Users/student UniqueID 50x


Create the User's Shell Property to bash:

dscl . -create /Users/student UserShell /bin/bash


Create the User's full name:

dscl . -create /Users/student RealName "Student"


Create and set the User's password:

dscl . -passwd /Users/student thepasswordyouwant


Make the user part of the local staff group:

dscl . -create /Users/student PrimaryGroupID 20


Create and set the User's Home Directory:

dscl . -create /Users/student NFSHomeDirectory /Local/Users/student


That should be it? The 50x in UniqueID should be set to 502 or above. You can't use 501 as that would have been used when creating the first local (admin) account on that mac. If you want to elevate that user's privileges to admin then simply change the PrimaryGroupID switch to 80.


Always test the above locally first whilst logged in as an admin, using Terminal and root privileges. How to elevate to root privileges? precede all the commands with sudo. When you use sudo you'll be prompted for the local admin account's password which you won't see being typed. Once you've got this working as you want and, more importantly, you're comfortable with it, you can send the above commands (minus the sudo) as separate lines in ARD. Whenever you send a UNIX command using ARD you must always send it as root.


Another way of doing this is to use whatever you're using for deployment. DeployStudio is something you could easily use and if you've an existing workflow you can combine the above commands in a single script as part of the workflow.


Hopefully the above should help now?

Is there a way to mass deploy a stand alone account using remote desktop?

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