- This topic has 15 replies, 7 voices, and was last updated 15 years, 5 months ago by
knowmad.
-
AuthorPosts
-
August 26, 2009 at 12:59 am #376957
akinspe
ParticipantJust a note,
I will be uploading an updated version of createUser as soon as I test it against a final (shipping) build of Snow Leopard. This new version will be compatible with 10.4 through 10.6. Happy Imaging!
August 26, 2009 at 2:25 pm #376965hetjan
ParticipantI can’t wait. createUser doesn’t currently work on my 10.5.8 buildtrain
August 26, 2009 at 5:10 pm #376974akinspe
Participant[QUOTE][u]Quote by: hetjan[/u][p]I can’t wait. createUser doesn’t currently work on my 10.5.8 buildtrain[/p][/QUOTE]
This update will not fix that since there are no substantive changes to the code that actually creates the user. Only relaxing the checks to function under 10.6. The problems you are having are likely because of a bad USERDATA file or perhaps something with your InstaDMG setup. Are you using the latest version of instaDMG? I know that some of the chroot stuff that was done required some changes so it would work properly. It was not createUser, but instaDMG that needed to be updated.
August 26, 2009 at 5:15 pm #376976hetjan
ParticipantI’m using r211 from svn.
I’ve tried creating a DMG to hold the pkg, which worked around the chroot issues I had with other packages, but I have had no luck. I’ve tried installing it via ARD and installing it locally with no luck.
When I install locally I get this in the system log:
Aug 26 17:14:10 tests-macbook com.apple.launchd[1] (com.apple.installdb.system): Throttling respawn: Will start in 1 secondsI don’t know what to make of it. Any ideas?
August 27, 2009 at 10:00 pm #376989hetjan
ParticipantI should have known…
The user is created OK, but there is no homedir until after first login.
August 29, 2009 at 12:38 pm #377007Chris George
Participant[QUOTE][u]Quote by: hetjan[/u][p]I should have known…
The user is created OK, but there is no homedir until after first login.[/p][/QUOTE]
That’s as designed.
August 29, 2009 at 12:41 pm #377008hetjan
ParticipantIs there no way to create the homedir w/o logging in? Something like WGMs Create Home Now button …
August 31, 2009 at 8:17 pm #377016knowmad
ParticipantIf you partially create the home directory, ie create the Documents folder to put something in it, the rest of it will NOT be created on first login.
So, either properly build it (PITA) or add your additions to the defualt user template and let it build naturally…. just be careful what you add.September 1, 2009 at 3:39 pm #377026Anthony Reimer
Participant[QUOTE][u]Quote by: knowmad[/u][p][i]If you partially create the home directory, ie create the Documents folder to put something in it, the rest of it will NOT be created on first login.[/i][/p][/QUOTE]
So simply put! That seems to explain every problem I’ve had with createUser. In my case, that probably means working on a first run script or package that adds those files after the account is created.
September 6, 2009 at 4:42 pm #377085knowmad
ParticipantJazz,
Yes, post install first run scripts are useful… unless your adding those files to EVERY user you create. In which case you might consider putting them into the default user setup (aka user template) so that you dont have to run later scripts or leave password coded into scripts on the system.September 14, 2009 at 3:52 pm #377151mlinde
ParticipantIs there a way to setup default loginitems for the user created with createuser? I don’t want it for all users, I know I can use LocalMCX to manage login items, but I want something AT FIRST LOGIN for the created admin account – not later. Ideas?
Never mind – I used instaDMG to copy a loginitems.plist to the /Library/Preferences, then removed said file as soon as it ran.
Worked as I wanted, although not pretty.September 14, 2009 at 7:49 pm #377152knowmad
Participanthow about making this its own topic?
October 1, 2009 at 4:29 pm #377270dead2sin
ParticipantShould createUser be working with Snow Leopard now? I just did a 10.6 build and it didn’t make the user account at all =(
Thanks,
Nate
October 2, 2009 at 7:36 pm #377280dead2sin
ParticipantI talked to Akinspe and he said it works with 10.6. My issue was most likely due to the USERDATA file (I reused the USERDATA file from the previous version). I’ll post here if that fixes it for me.
November 2, 2009 at 11:14 pm #377432knowmad
ParticipantMy turn to complain.
I cannot get the thing to work. I tried a brand new download of everything (latest build), I made a new userdata file, I tried the old one, I tried with password hash file, with plaintext password, hidden, admin, visible, non-admin, specific uid, auto uid, etc…
Nothing,
here, in case it helps, is the error from the logs when I tried it on my machine without running instadmg to see what I would get:
[code]11/2/09 3:01:37 PM Installer[52487] ================================================================================
11/2/09 3:01:37 PM Installer[52487] User picked Standard Install
11/2/09 3:01:37 PM Installer[52487] Choices selected for installation:
11/2/09 3:01:37 PM Installer[52487] Upgrade: “createUser”
11/2/09 3:01:37 PM Installer[52487] ================================================================================
11/2/09 3:01:37 PM Installer[52487] Configuring volume “Boot”
11/2/09 3:01:37 PM Installer[52487] Free space on “Boot”: 279.66 GB (279662686208 bytes).
11/2/09 3:01:37 PM Installer[52487] Create temporary directory “/var/folders/f4/f4vtOP5NF74nUrS4GjrJ7k+++TI/-Tmp-//Install.52487iX6fTV”
11/2/09 3:01:37 PM Installer[52487] IFPKInstallElement (1 packages)
11/2/09 3:01:38 PM installd[52518] PackageKit: —– Begin install —–
11/2/09 3:01:39 PM installd[52518] PackageKit: Install Failed: PKG: post-flight scripts for “edu.uc.daap.createuser.pkg”
Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x103174720 “An error occurred while running scripts from the package “createUser.pkg”.” {
NSFilePath = “./postflight”;
NSLocalizedDescription = “An error occurred while running scripts from the package \U201ccreateUser.pkg\U201d.”;
NSURL = “file://localhost/Users/administrator/Desktop/createUser.pkg”;
PKInstallPackageIdentifier = “edu.uc.daap.createuser.pkg”;
}
11/2/09 3:01:40 PM Installer[52487] Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
11/2/09 3:01:40 PM Installer[52487] IFDInstallController 17B0BE80 state = 7
11/2/09 3:01:40 PM Installer[52487] Displaying ‘Install Failed’ UI.
11/2/09 3:01:40 PM Installer[52487] ‘Install Failed’ UI displayed message:’The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.’.
11/2/09 3:01:40 PM Installer[52487] The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.[/code]suggestions…..
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed