Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

CreateUserPkg to update passwords?

Hi all,

I'm successfully imaged a few machines with the and used createuserpkg to set the admin account/password.

Has anyone attempted to update the password (we need to do this quarterly) by creating another pkg and pushing it to the machine with the new updated password?

Thanks,
Ronnie

Like Comment
Order by:
SOLVED Posted: by bpavlov
sysadminctl
    -deleteUser <user name> [-secure || -keepHome]
    -newPassword <new password> -oldPassword <old password> [-passwordHint <password hint>]
    -resetPasswordFor <local user name> -newPassword <new password> [-passwordHint <password hint>]
    -addUser <user name> [-fullName <full name>] [-UID <user ID>] [-password <user password>] [-hint <user hint>] [-home <full path to home>] [-admin] [-picture <full path to user image>]

Pass '-' instead of password in commands above to request prompt.

Doesn't answer your specific question, but might provide you with a different approach in your goal. Tool was introduced with OS X 10.10 I believe.

Like
SOLVED Posted: by mpermann

@rqomsiya I think you can do that right from a Casper policy. I've included a screen shot.

Like
SOLVED Posted: by benshawuk

To answer the question directly, Yes: CreateUserPKG does update existing passwords, if the account already exists. (Make sure the UID doesn't change, otherwise permissions on the home folder will be incorrect).

Like
SOLVED Posted: by Kyuubi

Two questions from the posts above: 1) If you create a local user from the policy shown above is that hidden? Can you make it hidden if its not? 2) Does CreateUserPKG work with El Capitan?

Thx

Like
SOLVED Posted: by davidacland

CreateUserPKG does work on 10.11. I'm not sure you can create a hidden account with the policy option, although sysadminctl can.

Like
SOLVED Posted: by rqomsiya

Correct. It does work on 10.11.4 in my testing. I wouldn't set the UID to below 500, which would automatically create a hidden account.

I would set it to 501+ then use the sysadminctl command to set it as hidden. See this:
http://support.apple.com/kb/HT5017

Like