Skip navigation

How can I duplicate a user?

468 Views 3 Replies Latest reply: Jan 27, 2013 9:52 PM by TeenTitan RSS
Jeff Curto Calculating status...
Currently Being Moderated
Jan 10, 2013 6:49 AM

I have a small lab of Macs running Snow Leopard.

 

There is an existing user on each machine (Student) and I want to create a duplicate of that user (Student 2) on each machine using ARD.

 

I can see how to add a new user, but I'd like to duplicate the existing user with all the "bits and pieces" (dock icons, permissions, files, etc) of that user on each machine.

 

I can't find any way to do that with ARD... or at least I can't find any place that this operation is documented.

 

Any help would be most appreciated.

 

Thanks!

  • TeenTitan Level 4 Level 4 (2,410 points)
    Currently Being Moderated
    Jan 12, 2013 12:23 PM (in response to Jeff Curto)

    Ones you create the user you can copy the account from one user to another user

     

    ie:

    send unix command as root

    ditto /Users/Student1 /Users/Student2

     

    if you wanted to create the account and copy it, then you can do some thing like:

     

    dscl / -create /Users/Student2 <--- must not conflict with another user

    dscl / -create /Users/Student2 UserShell /bin/bash

    dscl / -create /Users/Student2 RealName "Student2"

    dscl / -create /Users/Student2 UniqueID "1015" <--- must not conflict with another user

    dscl / -create /Users/Student2 PrimaryGroupID 80

    dscl / -create /Users/Student2 NFSHomeDirectory /Users/Student2

    dscl / -passwd /Users/Student2 SamePasswordAsStudent1

    ditto /Users/Student1 /Users/Student2

  • TeenTitan Level 4 Level 4 (2,410 points)
    Currently Being Moderated
    Jan 27, 2013 9:52 PM (in response to Jeff Curto)

    BTW have you cosnidered a directory service? Such services can let you create accounts in one spot, and share the accounts to many computers

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.