|
There's no real interface to the crypt() syscall through Bash that I
know of, however if you've got either perl or mysql command line you
can do something like: mysql -u <user> -h <host> -p <database> -e 'select encrypt("passwd", "$1$salt")' The $1$ specifies that it use MD5 if available. Remove this if you compiled on a system that doesn't support md5, since vpopmail won't use md5 either then. To find out if you're using md5, simply look at the password string of one of the existing accoutns, and if it begins with $1$ then you're using md5, otherwise its DES. You can also do perl -e 'print crypt("password", "$1$salt");' The same rules apply to the string being used as a salt. For more info see the MySQL manual available at www.mysql.com, or for the perl function see perldoc -f crypt. Hope that helps, Nick Harring Webley Systems Oliver Etzel - GoodnGo.COM (R) wrote: Hello, anybody here who knows how to generate a password that are stored by vpopmail in a sql database by a Unix commandline?Oliver |
- [vchkpw] password encryption cyko
- [vchkpw] Re: password encryption Peter Palmreuther
- Re: [vchkpw] Re: password encryp... Jacob Mathew
- [vchkpw] Enable learn passwo... John Johnson
- [vchkpw] Re: password encryp... Peter Palmreuther
- Re: [vchkpw] Re: passwor... Oliver Etzel - GoodnGo.COM \(R\)
- Re: [vchkpw] Re: pa... Ken Jones
- Re: [vchkpw] Re... Oliver Etzel - GoodnGo.COM \(R\)
- Re: [vchkpw... Nick Harring
- Re: [vchkpw] Re... Erik Bourget
- Re: [vchkpw] Enable learn pa... Tom Collins
