Sorry, typo in cut-and-paste. # dd if=/dev/random count=1 | tr -c "[:alnum:]" '0-9A-Za-z0-9A-Za-z0-9A-Za-z' ; echo zNvPGEVzCZ0QQRMUjtzcJJXRlKNPfVFCTEol0pdPmGEyzFiEUx0PUjPYMdUUYklbKPICmhS9IJEnxg4aaLVojizk6bjznuvzfLfAR4dfzX4nKfNqCAmVR13LZ08aUZzGyxW2jWNV9oBDBhcPQRmC2nzoEtCIE2PQdS5V2FIixBKjrB05nDnwMAfjzpVKQ7ft4GUsXNyAve9OIl3PUUTecezldocgvWrSFfbI8ztXw9zP2Ka9Gu39jFULWbLYwqNfzDMVOy76nPEWA9DfeT5yUrSO9fSyREAes7XxSbYvcyuzahBdqBaySc4EIgRQDBFqRxJ6hzbY7dg98HtcQzoWSrCgf2SA6VJwLivtld3eCddIz5HZIjcHUqISzFXMLnOPszV627zGhOm5Ei7diTQbf8GZQ3ZD8r7yY2ao9Mbm9w16nCt5issPD2toxoKSdqaNWYHbTCqEhXineHmQPwX9z1qDFZkM7B20FecLS5ECKe8yH7iSlIiFDCbAbFNVJ1PP #
I'll leave it to you to pick out 9 chars for the seed and 31 chars for the rest, as in $1$zNvPGEVzC$Z0QQRMUjtzcJJXRlKNPfVFCTEol0pdP On Tue, Aug 30, 2011 at 11:34 AM, Michael Sierchio <ku...@tenebras.com> wrote: > dd if=/dev/random count=1 | tr -c "[:alnum:]" > '0-9A-Za-z0-9A-Za-z0-9A-Za-a-z0-9A-Za-z' > > will give you the right kind of characters to use, for example. > > On Tue, Aug 30, 2011 at 11:32 AM, Michael Sierchio <ku...@tenebras.com> wrote: >> Presumably you're doing this to prevent direct login? >> >> chpass allows 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 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 list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" >>> >> > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"