Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 14:30:26 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Michael <mlmichael70@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: random generated password
Message-ID:  <4E5D2C42.4020603@sentex.net>
In-Reply-To: <4E5D28E0.5050700@gmail.com>
References:  <4E5D28E0.5050700@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)#


> 
> 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: P5RrhmUl4Np2
0(ich10)#

	---Mike

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5D2C42.4020603>