Date: Tue, 30 Aug 2011 11:39:33 -0700 From: Michael Sierchio <kudzu@tenebras.com> To: Michael <mlmichael70@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: random generated password Message-ID: <CAHu1Y70LzXg3cr-5zfCWCPc3j7BCQRh9wRTMZpQWaREu=a4svw@mail.gmail.com> In-Reply-To: <CAHu1Y71DmKEatXcx5yMLDEUwE2SpBNEgr=vZ-9DysPWEK4QDCQ@mail.gmail.com> References: <4E5D28E0.5050700@gmail.com> <CAHu1Y72RGC5K2FPYk2Fq28zNkypAfg8YJrL=AQ6ht2S6wzf_nA@mail.gmail.com> <CAHu1Y71DmKEatXcx5yMLDEUwE2SpBNEgr=vZ-9DysPWEK4QDCQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, typo in cut-and-paste. # dd if=3D/dev/random count=3D1 | tr -c "[:alnum:]" '0-9A-Za-z0-9A-Za-z0-9A-Za-z' ; echo zNvPGEVzCZ0QQRMUjtzcJJXRlKNPfVFCTEol0pdPmGEyzFiEUx0PUjPYMdUUYklbKPICmhS9IJE= nxg4aaLVojizk6bjznuvzfLfAR4dfzX4nKfNqCAmVR13LZ08aUZzGyxW2jWNV9oBDBhcPQRmC2n= zoEtCIE2PQdS5V2FIixBKjrB05nDnwMAfjzpVKQ7ft4GUsXNyAve9OIl3PUUTecezldocgvWrSF= fbI8ztXw9zP2Ka9Gu39jFULWbLYwqNfzDMVOy76nPEWA9DfeT5yUrSO9fSyREAes7XxSbYvcyuz= ahBdqBaySc4EIgRQDBFqRxJ6hzbY7dg98HtcQzoWSrCgf2SA6VJwLivtld3eCddIz5HZIjcHUqI= SzFXMLnOPszV627zGhOm5Ei7diTQbf8GZQ3ZD8r7yY2ao9Mbm9w16nCt5issPD2toxoKSdqaNWY= HbTCqEhXineHmQPwX9z1qDFZkM7B20FecLS5ECKe8yH7iSlIiFDCbAbFNVJ1PP # 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 <kudzu@tenebras.com> wro= te: > dd if=3D/dev/random count=3D1 | 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 <kudzu@tenebras.com> w= rote: >> 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 <mlmichael70@gmail.com> wrote: >>> Hello, >>> >>> When adding a new user it is possible to assign a random generated pass= word. >>> But is it possible to assign a random password for already existing use= rs? >>> >>> 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-unsubscribe@freebsd= .org" >>> >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y70LzXg3cr-5zfCWCPc3j7BCQRh9wRTMZpQWaREu=a4svw>