From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 18:34:43 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 058AC106566B for ; Tue, 30 Aug 2011 18:34:43 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9449C8FC18 for ; Tue, 30 Aug 2011 18:34:42 +0000 (UTC) Received: by ewy1 with SMTP id 1so3954447ewy.13 for ; Tue, 30 Aug 2011 11:34:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.5.66 with SMTP id 42mr616780eek.137.1314729279536; Tue, 30 Aug 2011 11:34:39 -0700 (PDT) Received: by 10.14.97.77 with HTTP; Tue, 30 Aug 2011 11:34:39 -0700 (PDT) In-Reply-To: References: <4E5D28E0.5050700@gmail.com> Date: Tue, 30 Aug 2011 11:34:39 -0700 Message-ID: From: Michael Sierchio To: Michael Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-questions@freebsd.org" Subject: Re: random generated password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 18:34:43 -0000 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 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 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" >> >