From owner-freebsd-questions@FreeBSD.ORG Thu Apr 29 12:36:16 2004 Return-Path: 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 14B8D16A4CE for ; Thu, 29 Apr 2004 12:36:16 -0700 (PDT) Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id D96A443D41 for ; Thu, 29 Apr 2004 12:36:15 -0700 (PDT) (envelope-from leblanc@leblanc.mirrorimage.net) Received: by leblanc.mirrorimage.net (Postfix, from userid 114) id 3DFD8AB6E; Thu, 29 Apr 2004 15:35:44 -0400 (EDT) Date: Thu, 29 Apr 2004 15:35:45 -0400 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20040429193544.GH419@keyslapper.org> Mail-Followup-To: FreeBSD Questions References: <20040424232033.GA53918@keyslapper.org> <20040424184957.I57098@sotec.home> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040424184957.I57098@sotec.home> User-Agent: Mutt/1.5.6i Subject: Re: non-interactive password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 19:36:16 -0000 On 04/24/04 06:52 PM, Mikko Työläjärvi sat at the `puter and typed: > On Sat, 24 Apr 2004, Louis LeBlanc wrote: > > > Hey everyone. I'm trying to recreate a password script that sets > > passwords (as root on the local system only). The trick is that it > > must change the password non-interactively. I had this working, but > > when the system was trashed, the script was lost. > > > > Can someone refresh my memory on the command format? > > echo "$password" | pw usermod "$user" -h0 > > Might do the trick. 'fraid not. It fails quietly, but it fails. Thanks anyway. Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org Ô¿Ô¬ Bagdikian's Observation: Trying to be a first-rate reporter on the average American newspaper is like trying to play Bach's "St. Matthew Passion" on a ukelele.