From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 18:32:24 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 8D9DE1065675 for ; Tue, 30 Aug 2011 18:32:24 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id 2E1B78FC18 for ; Tue, 30 Aug 2011 18:32:23 +0000 (UTC) Received: by eye4 with SMTP id 4so4381554eye.31 for ; Tue, 30 Aug 2011 11:32:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.6.70 with SMTP id 46mr2265867eem.9.1314729142874; Tue, 30 Aug 2011 11:32:22 -0700 (PDT) Received: by 10.14.97.77 with HTTP; Tue, 30 Aug 2011 11:32:22 -0700 (PDT) In-Reply-To: <4E5D28E0.5050700@gmail.com> References: <4E5D28E0.5050700@gmail.com> Date: Tue, 30 Aug 2011 11:32:22 -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:32:24 -0000 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" >