Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 10:03:20 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ADDUSER - non-intercative
Message-ID:  <20010420100320.C1492@billygoat.slb.to>
In-Reply-To: <20010420161554.B30960@everest.wananchi.com>; from wash@wananchi.com on Fri, Apr 20, 2001 at 04:15:54PM %2B0300
References:  <20010420161554.B30960@everest.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> This is surely a very dumb one but never mind...I am sure dumb in
> this.

Not really.  The man page pw(8) mentions it, but it mumbles a lot
about file descriptors; I can see how it would be tough for a newbie
to catch.

> I am looking for command line options to pw which will accept also a
> password.  I have searched the archives but still don't find it.

You want the -h option:

  # echo 'newpassword' | pw usermod myname -h 0

Lucas

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010420100320.C1492>