Home Forums Software InstaDMG CreateUser password not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #376694
    ggeilman
    Participant

    Hello All,
    I’m sure there’s a simple answer to this, but it’s not clear to me. Any help is appreciated.

    PROBLEM: it creates the user successfully, but the password doesn’t work.

    The createuser.pkg works for me if I don’t modify it. It creates a user and the password is “password”. But as soon as I add a clear text password and shortname, it stops working. The only thing I’m doing is changing short and long name to “test” and password to “test” and it creates the user, but the password doesn’t work.

    I’m aware of commenting special characters. That doesn’t apply here. I’m using Text Wrangler to edit.

    I also tried using the shadow hash method and I get the same results (creates the user successfully, but password doesn’t work).

    Thoughts? Permissions?

    Thx,
    Greg

    #376812
    Jaimegago
    Participant

    When trying the highly *not recommanded by the author* method of putting the password in plain text I think you need to remove the password_hash file from the package, did you try that? As far as for the *author recommanded method” did you follow the instructions in the README file step by step? It worked for me (and others) perfectly so I am afraid my thoughts are going to some human error and hopefully for you I am right 😉

    #376825
    dead2sin
    Participant

    I had the same issue.

    It turns out the issue has to do with generating the shadow hash. If you have any symbols in your password, you MUST escape the symbols when you generate the hash.

    Example:

    p@ssword

    needs to be

    p\@ssword

    If you don’t escape the ! it will stop at the T and the hash won’t match what you want the password to be.

    So a backslash before each symbol within the password: p\@ssword\!

    Hope that helps!

    Nate

    #376831
    Jaimegago
    Participant

    Hmm,
    Your issue/fix is linked to the generation of the password_hash file while ggeilman has *also* problem even whe he provides the password in plain text inside USERDATA so there is more to it.

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

Comments are closed