random generated password

Mike Tancsa mike at sentex.net
Tue Aug 30 18:30:44 UTC 2011


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 at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-questions mailing list