Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Auto create users during installation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto create users during installation
Authored by: Thom on May 10, '04 01:47:43PM

What if you've already created a 'loadset' that you could blast onto each machine's hard drive, with a standard 'admin' user, and wanted to create subsequent users?

Our goal is to quickly roll out machines to staff. If we copy our loadset image to a machine's hard drive, then use a file like the one you describe to automate the creation of subsequent users, this could speed up the roll-out process.

I'm aware of some scripts that have been released already which mirror the user creation process, which can be run from the command line. But this method would appear to be a more 'acceptable' means of creating new users; scripts like that are just second-guessing what the install process does, and become dated the minute they're released.

i.e. when a new version of the system comes out, even a minor rev perhaps, the script needs to be updated to reflect any changes to the user creation process.



[ Reply to This | # ]
Auto create users during installation
Authored by: Cap'n Hector on May 11, '04 03:04:34AM

This works at only one time: At the time that the New User Setup assistant runs. You might be able to automate this by blasting /var/db/netinfo/local.nidb (this forces the Setup Assistant to run)…but that might give unexpected results if the user's UID changes while the short name remains teh same.



[ Reply to This | # ]
Auto create users during installation
Authored by: Cap'n Hector on May 11, '04 03:09:17AM

Whoops, I read your post too fast…My last note was responding to a mis-reading of the first comment.

Yes, this is less fragile than scripts that second-guess the user creation process. I wouldn't expect to see this break except at major version changes to the OS.



[ Reply to This | # ]