From owner-freebsd-questions@FreeBSD.ORG Sat Apr 24 18:52:48 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 2284D16A4CE for ; Sat, 24 Apr 2004 18:52:48 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BED43D5E for ; Sat, 24 Apr 2004 18:52:47 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from sotec.home (adsl-64-166-22-198.dsl.snfc21.pacbell.net [64.166.22.198]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i3P1qk5l025581 for ; Sat, 24 Apr 2004 18:52:47 -0700 (PDT) Date: Sat, 24 Apr 2004 18:52:47 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@sotec.home To: FreeBSD Questions In-Reply-To: <20040424232033.GA53918@keyslapper.org> Message-ID: <20040424184957.I57098@sotec.home> References: <20040424232033.GA53918@keyslapper.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: non-interactive password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2004 01:52:48 -0000 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. $.02, /Mikko