Home Forums Software InstaDMG createUser password not accepted

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #374834
    mleacy
    Participant

    I used createUser, and followed the instructions for shadowHash.

    On booting my system, it will not accept the password. I even went back through my bash history to make sure I wasn’t misremembering and/or I didn’t mistype the password originally.

    The password_hash file was created after I ran “shadowHash mypassword>password_hash”. It contains what looks like a password hash.

    Any suggestions?

    #374835
    larkost
    Participant

    Are you sure you have the right UUID applied to the file, and have you checked to make sure that it is being put in the right place on the target system in (/private)/var/db/dslocal/nodes/Default/users? And have you checked permissions (root-only)?

    #374840
    mleacy
    Participant

    [QUOTE][u]Quote by: larkost[/u][p]Are you sure you have the right UUID applied to the file, and have you checked to make sure that it is being put in the right place on the target system in (/private)/var/db/dslocal/nodes/Default/users? And have you checked permissions (root-only)?[/p][/QUOTE]

    I did not look at any of this. I followed the instructions in the readme file.

    [code]From Terminal:
    1. type “cd ” then drag the Resources folder from the finder into terminal, this will paste the full path of the resources folder into the shell, then hit enter
    2. Type the following:
    ./shadowHash yourpassword>password_hash[/code]

    I did notice this in the readme file:

    3. At MINIMUM you need a valid short name and a method to generate password (see GENERATING PASSWORDS below). [b]To ease in validation, it will only accept short names with letters, numbers and underscore that are 1-31 characters.[/b]

    (emphasis mine)

    Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.

    #374846
    Rusty Myers
    Participant

    [QUOTE][u]Quote by: mleacy[/u][p]I used createUser, and followed the instructions for shadowHash.

    On booting my system, it will not accept the password. I even went back through my bash history to make sure I wasn’t misremembering and/or I didn’t mistype the password originally.

    The password_hash file was created after I ran “shadowHash mypassword>password_hash”. It contains what looks like a password hash.

    Any suggestions?

    [/p][/QUOTE]

    Does your password include anything special besides letters and numbers? Check this thread if your using reserved characters.

    https://www.afp548.com/forum/viewtopic.php?showtopic=20674&mode=&show=5&page=3

    You have to comment them out when making your password hash.

    #374858
    akinspe
    Participant

    [QUOTE]Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.[/QUOTE]

    you may need to enclose your password in quotes depending on the characters used. This is not a function of shadowhash, but rather a consequence of the shell interpreting your characters.

    i.e.

    ./shadowHash “yourpassword”>password_hash

    Hope this helps

    #374862
    Rusty Myers
    Participant

    [QUOTE][u]Quote by: akinspe[/u][p][QUOTE]Does this apply to hashes created by the shadowHash script, or just to cleartext passwords entered into the USERDATA file? I has assumed this statement applied only to the USERDATA file. My password has several special characters.[/QUOTE]

    you may need to enclose your password in quotes depending on the characters used. This is not a function of shadowhash, but rather a consequence of the shell interpreting your characters.

    i.e.

    ./shadowHash “yourpassword”>password_hash

    Hope this helps[/p][/QUOTE]

    I’ve found that it is required to escape special charachters in the hash, quotes did not work for me. I could have quotes or no quotes, but unless I escaped those characters, it failed. Example:

    If your pass =
    “mypass|word”
    then
    your password must have characters escaped like:
    “mypass\|word”
    else
    fail
    fi

    #374863
    mleacy
    Participant

    Riiiight. Escaping special characters. There’s my user moment for the day. Thanks!

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

Comments are closed