Changing user password from command line

Greg 'groggy' Lehey grog at FreeBSD.org
Wed Aug 2 23:54:34 UTC 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060802/665fe1d5/attachment.pgp


More information about the freebsd-questions mailing list