Re: random generated password

2011-09-02 Thread Michael
On 30/08/2011 19:30, Mike Tancsa wrote: Preferably in a non-interactive and scriptable way. Is it possible with the base system tools? 0(ich10)# pw usermod testuser1 -w random Password for 'testuser1' is: km.y0LScI3p1 0(ich10)# pw usermod testuser1 -w random Password for 'testuser1' is:

random generated password

2011-08-30 Thread Michael
Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random password for already existing users? Preferably in a non-interactive and scriptable way. Is it possible with the base system tools? Michael

Re: random generated password

2011-08-30 Thread Mike Tancsa
On 8/30/2011 2:16 PM, Michael wrote: Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random password for already existing users? 0(ich10)# pw useradd testuser1 -w random Password for 'testuser1' is: oFPw9BPe 0(ich10

Re: random generated password

2011-08-30 Thread Michael Sierchio
a random generated password. But is it possible to assign a random password for already existing users? Preferably in a non-interactive and scriptable way. Is it possible with the base system tools? Michael ___ freebsd-questions@freebsd.org mailing

Re: random generated password

2011-08-30 Thread Michael Sierchio
root to set the encrypted password directly chpass -p '$1$123456789$your-random-chars-here' On Tue, Aug 30, 2011 at 11:16 AM, Michael mlmichae...@gmail.com wrote: Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random

Re: random generated password

2011-08-30 Thread Michael Sierchio
-p '$1$123456789$your-random-chars-here' On Tue, Aug 30, 2011 at 11:16 AM, Michael mlmichae...@gmail.com wrote: Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random password for already existing users? Preferably in a non

Re: random generated password

2011-08-30 Thread Randal L. Schwartz
Michael == Michael Sierchio ku...@tenebras.com writes: Michael dd if=/dev/random count=1 | tr -c [:alnum:] Michael '0-9A-Za-z0-9A-Za-z0-9A-Za-a-z0-9A-Za-z' Michael will give you the right kind of characters to use, for example. I prefer openssl rand -base64 6 to get an 8-char password from a

Re: random generated password

2011-08-30 Thread Roland Smith
On Tue, Aug 30, 2011 at 07:16:00PM +0100, Michael wrote: Hello, When adding a new user it is possible to assign a random generated password. But is it possible to assign a random password for already existing users? Preferably in a non-interactive and scriptable way. Is it possible

Re: random generated password

2011-08-30 Thread Michael Sierchio
That occurred to me, but it's a smaller alphabet. Probably doesn't matter if the purpose is to make login unusable. On Tue, Aug 30, 2011 at 11:40 AM, Randal L. Schwartz mer...@stonehenge.com wrote: Michael == Michael Sierchio ku...@tenebras.com writes: Michael dd if=/dev/random count=1 | tr

Re: random generated password

2011-08-30 Thread Pierre-Luc Drouin
If the purpose is to make login unusable, starring the password is the only 100% safe way... On Tue, Aug 30, 2011 at 2:42 PM, Michael Sierchio ku...@tenebras.com wrote: That occurred to me, but it's a smaller alphabet.  Probably doesn't matter if the purpose is to make login unusable. On Tue,