Home Forums Software InstaDMG Blank password in createuser

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #375355
    hetjan
    Participant

    I’m trying to create a user in my build train with a blank password. So far I’ve tried
    [code]password=””
    [/code]
    and
    [code]password=”
    [/code]
    and many variations on
    [code]
    ./shadowHash “”>password_hash [/code]

    All variations of running ./shadowHash to get the desired result have resulted in a password_hash file containing “Invalid password”. Reading the shadowHash script I found these lines: [code]if (empty($password)) {
    die(“Invalid password”);
    [/code]
    so I’m guessing shadowHash isn’t the way to go. Is there another way to get the desired result?

    #375363
    Rusty Myers
    Participant

    Did you try?

    [code]password=[/code]

    Rusty

    #375369
    hetjan
    Participant

    Yes, of course.

    #375371
    Patrick Fergus
    Participant

    Try the following as a postflight in a payload-free pkg in your CustomPKGs:[code]sudo “$3″/usr/bin/dscl -f “$3″/var/db/dslocal/nodes/Default localonly -passwd /Local/Target/Users/ ”[/code]I tried a slightly easier version of this:[code]sudo /usr/bin/dscl . -passwd /Users/ ”[/code]and it gave me a one-click login (if the Login Window shows a list of users), which I’m guessing may be one of your goals.

    Note that I haven’t tried the first command, it’s just a collection of pieces of how to address dslocal via dscl on a non-startup disk. I [i]think[/i] it’s syntactically correct, but I could be wrong and I don’t have the time to test it right now.

    – Patrick

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

Comments are closed