Date: Sat, 24 Apr 2004 18:52:47 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net> To: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: Re: non-interactive password Message-ID: <20040424184957.I57098@sotec.home> In-Reply-To: <20040424232033.GA53918@keyslapper.org> References: <20040424232033.GA53918@keyslapper.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040424184957.I57098>