Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2006 09:24:32 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Simon Phoenix <phoenix.lists@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Changing user password from command line
Message-ID:  <20060802235432.GT48182@wantadilla.lemis.com>
In-Reply-To: <200608021553.19086.phoenix.lists@gmail.com>
References:  <58ebaa710608020248r1cfb7915t4caa0f6fcdbecb84@mail.gmail.com> <200608021553.19086.phoenix.lists@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--HqPpMaT+a6TeY/Q4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wednesday,  2 August 2006 at 15:53:07 +0300, Simon Phoenix wrote:
> On Wednesday 02 August 2006 12:48, Mike Fern wrote:
>> Dear all,
>> Does anybody know a program which is able to change user password from
>> command line?
>> We can add a user using single line pw (pw useradd), but i need
>> ability to set the password also, instead of old command "passwd user"
>> and then writing to stdin.
>
> man pw
>
> Look for -h option description.

The advantage of using passwd(1) is that it is available on all
UNIX-like systems (pw(8) isn't), and that it's easier to use.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.

--HqPpMaT+a6TeY/Q4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFE0Ts4IubykFB6QiMRAlnfAJ9wM/fmi5Y2cs0tRJag7w1AOebsHgCeML2c
qk8EjiD7t4A45iJFdYp74F0=
=RmS6
-----END PGP SIGNATURE-----

--HqPpMaT+a6TeY/Q4--



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