How to generate password hashes for vipw and chpass

Adam Zaleski talk at holon.urwis.cc
Mon Oct 6 05:59:38 UTC 2008


Ivan "Rambius" Ivanov pisze:

> # /sbin/md5 -s newpassword
> and then I passed the output to chpass. I tried to use the new
> password for the next login but it failed - so I believe this is
> wrong.
> Can you please show me how to generate the password hashes?

You can add new account with one command like this:

echo user_password |pw user add new_user -h0

Also if you only want to generate valid password hash
you can use 'openssl passwd -1 new_password'




More information about the freebsd-questions mailing list