Changing user password from command line

2006-08-02 Thread Mike Fern
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. Any ideas, suggestion?

Re: Changing user password from command line

2006-08-02 Thread Simon Phoenix
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

Re: Changing user password from command line

2006-08-02 Thread Greg 'groggy' Lehey
On Wednesday, 2 August 2006 at 16:48:48 +0700, Mike Fern wrote: Dear all, Does anybody know a program which is able to change user password from command line? Of course. I thought it was the only way. $ man -k password passwd(1), yppasswd(1) - modify a user's password From that man

Re: Changing user password from command line

2006-08-02 Thread Greg 'groggy' Lehey
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

Re: Changing user password from command line

2006-08-02 Thread Micah
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