Random password generation

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Sat Dec 17 05:46:35 PST 2005


Sean Murphy <smurphy at calarts.edu> writes:

> When creating user accounts with adduser you can have the system
> generate a random password.
> 
> Can you use a tool included in FreeBSD to change specific existing
> users passwords with a random one such as the one in adduser?

I've occasionally hacked something up along the lines of 
"(date;netstat;netstat -i)|gzip|uuencode foo|head|tail -1"
and I suppose you could add something to remove unacceptable
characters and bring pw(8) into the equation.

> it would also be usefull to do this from a input file to do multiple users.
> 
> The passwords I would need on the screen to give to the users.
> 
> If not is there an open source one to do this?

The makepasswd port is certainly more evolved than my hack.
Scripting it with pw(8) can be an exercise for the moderately
experienced system administrator...

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list