User account preferences

jyung
New Contributor III

All,

I have a master user account called macadmin with all of my user preferences
setup and configured. Is it possible when creating a new account it has the
same user preferences as macadmin?

Thanks for your time,

Jon

6 REPLIES 6

donmontalvo
Esteemed Contributor III

Hi Ken,
Edgar, Ken <ken.edgar at gmail.com> wrote:

That's exactly what we do when we're creating an image for a client, but there's a bit of clean up needed once this is done. Some caches, prefs, etc.

Don

--
https://donmontalvo.com

Kedgar
Contributor

Ah, yes... I guess I didn't think of that when I wrote this. I haven't been doing this in my configurations... yet, but only played with it for a while. Thanks!
On Dec 17, 2009, at 2:40 PM, Don Montalvo wrote

Kedgar
Contributor

As root or using sudo the below should do what you need. It will create a backup of the original user template, then it will copy whatever profile you want to a new default template. Finally it will change ownership on the newly created template.

mv /System/Library/User Template/English.lproj /System/Library/User Template/English.lproj.old
ditto -V /Users/username/ /System/Library/User Template/English.lproj/
chown -R root:wheel /System/Library/User Template/English.lproj/

donmontalvo
Esteemed Contributor III

Hi Ken,
On Dec 17, 2009, at 2:56 PM, Edgar, Ken wrote:

Back when we got stung with sidebar stalls due to server side folders that we inadvertently left on a Finder window. That prompted me to make a script that you can run when logged in as root, to ditto /Users/testaccount to /System/Library/User Template/English.lproj and along the way clean things up and set permissions. Pretty easy to create, I wouldn't be surprised if JAMF added this to their suite. ;)

Don

--
https://donmontalvo.com

Kedgar
Contributor

If you don't mind, can you share this with me? Or have you posted it before? I may not end up doing this, but it wouldn't hurt to play ;). I'm just curious to see what you clean up besides user cache, keychain, and mounts.

Thanks,
Ken

donmontalvo
Esteemed Contributor III

Hi Ken,
On Dec 17, 2009, at 3:19 PM, Edgar, Ken wrote:

Sure, I'll dig through my old stuff. I have an encrypted DMG for all the client work I did in the past, so I may have more than one. Things changed from 10.4 to 10.5 to 10.6 but the script should still work, albeit with some modifications.

Don

--
https://donmontalvo.com