Re: Adduser utility to generate "random" passwds ?

2007-01-09 Thread Michael
Frank Bonnet wrote: Hello Is there a possibility to use as a standalone software the adduser feature that generate "random" passwd. I want to generate new "strong" password for existing users. Thank you Frank ___ freebsd-questions@freebsd.org mailin

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Ivan Voras
Ivan Voras wrote: > Frank Bonnet wrote: > >> I want to generate new "strong" password for existing users. > > Here's an idea: > > $ head -c 64 /dev/random | md5 | head -c 10 ... or, following the upthread discussion, a preferable alternative: > openssl rand -base64 6 This will generate a stro

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Ivan Voras
Kirk Strauser wrote: > On Monday 08 January 2007 5:26 am, Ivan Voras wrote: > >> Here's an idea: >> >> $ head -c 64 /dev/random | md5 | head -c 10 > > Hugely bad idea. Since md5 outputs hex, you're only getting 4 bits of > entropy per character. Yes, with 10 characters that's 5 bytes of prac

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Kirk Strauser
On Monday 08 January 2007 5:26 am, Ivan Voras wrote: > Here's an idea: > > $ head -c 64 /dev/random | md5 | head -c 10 Hugely bad idea. Since md5 outputs hex, you're only getting 4 bits of entropy per character. Much better to use something like sysutils/pwgen to generate good random password

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Frank Bonnet
Sahil Tandon wrote: Frank Bonnet wrote: Is there a possibility to use as a standalone software the adduser feature that generate "random" passwd. I want to generate new "strong" password for existing users. /usr/sbin/pw usermod -w random thanks a lot :-)

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Ivan Voras
Frank Bonnet wrote: > I want to generate new "strong" password for existing users. Here's an idea: $ head -c 64 /dev/random | md5 | head -c 10 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions T

Re: Adduser utility to generate "random" passwds ?

2007-01-08 Thread Sahil Tandon
Frank Bonnet wrote: Is there a possibility to use as a standalone software the adduser feature that generate "random" passwd. I want to generate new "strong" password for existing users. /usr/sbin/pw usermod -w random -- Sahil Tandon <[EMAIL PROTECTED]> _