From owner-freebsd-questions@FreeBSD.ORG Sat Dec 17 13:46:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C24816A41F for ; Sat, 17 Dec 2005 13:46:35 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AC2843D5A for ; Sat, 17 Dec 2005 13:46:34 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 9284 invoked from network); 17 Dec 2005 13:46:33 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Dec 2005 13:46:33 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id A134328420; Sat, 17 Dec 2005 08:46:32 -0500 (EST) Sender: lowell@be-well.ilk.org To: Sean Murphy References: <43A34D1B.8060105@calarts.edu> From: Lowell Gilbert Date: 17 Dec 2005 08:46:32 -0500 In-Reply-To: <43A34D1B.8060105@calarts.edu> Message-ID: <44slsrlttz.fsf@be-well.ilk.org> Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Random password generation 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: Sat, 17 Dec 2005 13:46:35 -0000 Sean Murphy writes: > When creating user accounts with adduser you can have the system > generate a random password. > > Can you use a tool included in FreeBSD to change specific existing > users passwords with a random one such as the one in adduser? I've occasionally hacked something up along the lines of "(date;netstat;netstat -i)|gzip|uuencode foo|head|tail -1" and I suppose you could add something to remove unacceptable characters and bring pw(8) into the equation. > it would also be usefull to do this from a input file to do multiple users. > > The passwords I would need on the screen to give to the users. > > If not is there an open source one to do this? The makepasswd port is certainly more evolved than my hack. Scripting it with pw(8) can be an exercise for the moderately experienced system administrator... -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/