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
_______________________________________________ mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to