Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 11:34:39 -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:  <CAHu1Y71DmKEatXcx5yMLDEUwE2SpBNEgr=vZ-9DysPWEK4QDCQ@mail.gmail.com>
In-Reply-To: <CAHu1Y72RGC5K2FPYk2Fq28zNkypAfg8YJrL=AQ6ht2S6wzf_nA@mail.gmail.com>
References:  <4E5D28E0.5050700@gmail.com> <CAHu1Y72RGC5K2FPYk2Fq28zNkypAfg8YJrL=AQ6ht2S6wzf_nA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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-unsubscribe@freebsd.org"
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y71DmKEatXcx5yMLDEUwE2SpBNEgr=vZ-9DysPWEK4QDCQ>