Home Forums Software InstaDMG Need help with createuser

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #377661
    TAW
    Participant

    I am trying to build a simple image with Instadmg. Basically I started with a 10.5.4 dmg, added the 10.5.8 combo update as well as the clearreg script and the createuser script. During the build process I do not see any errors but I am unable to use the account I told createuser to make. I have tried using the password_hash method as well and the clear text but at this point I really don’t know if its even creating the account (not really sure how to tell either).

    Here is a sample of my USERDATA file, what am I doing wrong? How can I tell if its creating the user account but using the wrong password?

    #replace these values with your own. Comment out to use defaults
    shortname=admin
    longname=Administrator

    #leave blank for next available uid, Allowed UIDs are 100+
    uid=501

    #leave blank for 20
    gid=20

    #leave blank for /bin/bash
    shell=”/bin/bash”

    #leave blank for /Library/User Pictures/Nature/Zen.tif
    #pic=”/Library/User Pictures/Nature/Zen.tif”

    #uncomment to set password (not recommended since password is clear text)
    #if blank, it will use password hash file “password_hash”
    password=”password”

    #guid, leave blank for auto gen
    #genUID=D4F8BFC9-8EC8-4645-A739-516F59571A2E

    #home folder, leave default for /Users/%u
    #the following placeholder substitutions are currently supported
    # %u substitute the shortname
    # %n substitute the uid
    # %l substitute the first letter of the shortname
    # %L substitute the first letter of the shortname in uppercase
    user_home=/Users/%u

    #admin
    #1 – add to admin group
    #0 – don’t add to admin group
    admin=1

    #hide user
    #1 – hide user from login window
    #0 – don’t hide user (default)
    hide_user=0

    #377662
    TAW
    Participant

    The machine I was originally using to test the process is a MacBook Pro with 10.6.2. I copied everything to a G5 iMac running 10.5.8 and it seems to work as expected…..although it took 6 hours to build a simple 10.5.4 image with clearreg and createuser scripts.

    So am I too understand that if I want to build a 10.5 image I need to do it from a 10.5 machine? and a 10.6 image I need a 10.6 machine?

    #377663
    larkost
    Participant

    Yes, unfortunately at the moment you have to build 10.6 on 10.6, and 10.5 on 10.5. Yesterday in the shower I had an idea about how to get around this (maybe… it is going to take a little work). But right now that is second or third in line for my attention, and I have been distracted recently. But I do have Macworld coming up in February, and would like to have something to present by that point.

    #377747
    scottmorabito
    Participant

    I was getting problems just running the basic script/installer even outside InstaDMG I grabbed the latest createUser from v236 and modified the postflight file. There are two lines with:
    if ( echo $HOST_SW_VERS | grep “^10.5″>/dev/null ); then

    change 10.5 to 10.6 and it works fine.

    #377748
    foilpan
    Participant

    you could also change it to the following and check for both 10.5 or 10.6:

    [code]
    if ( echo $HOST_SW_VERS | egrep “^10.5|^10.6″>/dev/null ); then[/code]

    or more simply:

    [code]
    if ( echo $HOST_SW_VERS | egrep “^10.[5-6]”>/dev/null ); then[/code]

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed