Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Aug 2006 17:04:01 -0700
From:      Micah <micahjon@ywave.com>
To:        Greg 'groggy' Lehey <grog@freebsd.org>
Cc:        Simon Phoenix <phoenix.lists@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Changing user password from command line
Message-ID:  <44D13D71.2070205@ywave.com>
In-Reply-To: <20060802235432.GT48182@wantadilla.lemis.com>
References:  <58ebaa710608020248r1cfb7915t4caa0f6fcdbecb84@mail.gmail.com>	<200608021553.19086.phoenix.lists@gmail.com> <20060802235432.GT48182@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg 'groggy' Lehey wrote:
> 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.

pw's ability to alter password files in directories other than /etc 
comes in handy sometimes. Unless there's an undocumented way to do this 
with passwd.

- Micah



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