Home Forums Software InstaDMG createUser

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #381466
    scifiman
    Participant

    All, I’ve used the createUser.pkg included with InstaDMG before with great success.
    However now I need to create a user with no password. I looked through the script as well as the hash function and see there are several checks to avoid a blank password.
    I even tried commenting those out to see if it would work but no such luck.
    Could someone give me a pointer to creating a user without a password? Either by modifying the package or by another means.

    Thanks!

    #381467
    Allister Banks
    Participant

    Hey there,

    The folks at osxdeployment(myself included) have collaborated on common commands they run at firstboot. In one stanza a custom ‘guest’ user is created, which wouldn’t have a password. That might get you going in the right direction.

    [url]http://osxdeployment.com/wiki/Firstboot_Script_Commands[/url]

    Allister

    #381468
    scifiman
    Participant

    Cool. If I didn’t want it to have guest properties than I would just set that to be false, correct?
    Are there any other properties that are guest specific that I would want to omit.
    I’m working this into the createUser package now to try it out.

    This script uses:
    [code]dscl . -create $userPath $attribute $data[/code]
    but the current createUser uses
    [code]dscl -f /var/db/dslocal/nodes/Default localonly -create $userPath $attribute $data[/code]

    I’ve used dscl some but am by no means a master. Could you tell me the difference in the way it is addressing the local nodes and why it matters?

    #381469
    Allister Banks
    Participant

    -f is for when you’re modifying an unbooted volume, the dot(“.”) notation is meant to be running on a live system.

    feel free to join us in IRC (##osx-server) if you want more interactive assistance!

    Allister

    #381471
    scifiman
    Participant

    Would love to join you on IRC but Colloquy doesn’t seem to be working. Alternative clients?

    Also, ran the user creation part of the script on a Lion machine. It created an account and I can login, however it can’t find the home directory.
    I DID copy (ditto actually) /System/Library/User Template/English.lproj to /Users/myUser and changed the ownership (chown -R), but no luck.
    Also, in System Preferences -> Accounts, I can right click on the created user and choose “Advanced Options”, but nothing happens. On a different, known good user, I do get the options.
    So I’m not sure the user was created correctly.

    #381472
    scifiman
    Participant

    Seems to be our network blocking IRC 🙁

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

Comments are closed