[Casper] creating local user accounts

Ernst, Craig S. ERNSTCS at uwec.edu
Wed Sep 3 12:22:39 PDT 2008


What do you want to change in the user template?

And for creating accounts the built-in JSS stuff seems to be fine for me...

Craig E


On 9/3/08 2:16 PM, "Thomas Larkin" <tlarki at kckps.org> wrote:

So, I have to create local user accounts, on like a ton of machines.  I have a script ready that will use the dscl command to create a local user account for students to log in just in case they can't sync their mobile accounts.  however, I do know that Casper offers creating user accounts from the JSS via a policy.

Now, my concerns are, how do I change the user template?  can I make a smart group based on local accounts?  Are there any known issues using the Casper built in policy, or should I stick with a script?  Anyone had to use this before?  I only ask all these questions because we are having directory problems, which I won't get into at the moment, but I need to push out local accounts to the machines so people can log in and run testing software.

Here is the script:

#!/bin/sh

#Long Name: KCK Student
#Short Name: student
#Password: password


dscl . -create /Users/student
dscl . -create /Users/student UserShell /bin/bash
dscl . -create /Users/student RealName "KCK Student"
dscl . -create /Users/student UniqueID 505
dscl . -create /Users/student PrimaryGroupID 20
dscl . -create /Users/student NFSHomeDirectory /Local/Users/student
dscl . -passwd /Users/student password
dscl . -create /Users/student dsAttrTypeNative:_writers_hint: Typical password
dscl . -create /Users/student
dsAttrTypeNative:_writers_LinkedIdentity: student
dscl . -create /Users/student dsAttrTypeNative:_writers_passwd: password
dscl . -create /Users/student dsAttrTypeNative:_writers_realname:
student
dscl . -create /Users/student
dsAttrTypeNative:_writers_UserCertificate: student

Thoughts?  Suggestions?

Many thanks in advance for any advice.

___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
cell:  913-449-7589
office:  913-627-0351


_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20080903/126af05b/attachment.html 


More information about the Casper mailing list