Re: How to generate password hashes for vipw and chpass
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' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to generate password hashes for vipw and chpass
Hello Adam, On Mon, Oct 6, 2008 at 8:40 AM, Adam Zaleski [EMAIL PROTECTED] wrote: 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' Thank you, this is the command I was looking for. Regards Ivan -- Tangra Mega Rock: http://www.radiotangra.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to generate password hashes for vipw and chpass
Ivan Rambius Ivanov [EMAIL PROTECTED] wrote: Can you please show me how to generate the password hashes? There are many tools; I use security/makepasswd. -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to generate password hashes for vipw and chpass
Hello, According to man pages of chpass(1) and vipw(1) I can create and modify users by supplying a user database entry in passwd(5) format. The only problem I face is that I do not know how to generate the password hashes for the password field. Following section 14.4 [http://www.freebsd.org/doc/en/books/handbook/crypt.html] from the handbook I found out that my system is using md5 to encrypt the passwords. I tried to use /sbin/md5 to generate the hash: # /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? Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to generate password hashes for vipw and chpass
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' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]