random generated password

Michael Sierchio kudzu at tenebras.com
Tue Aug 30 18:34:43 UTC 2011


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 <kudzu at 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 <mlmichael70 at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>
>


More information about the freebsd-questions mailing list