non-interactive password

Louis LeBlanc freebsd at
Thu Apr 29 12:36:16 PDT 2004

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.

Louis LeBlanc               leblanc at
Fully Funded Hobbyist, KeySlapper Extrordinaire :)                     Ô¿Ô¬

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.

More information about the freebsd-questions mailing list