Re: Changing user password from command line
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Changing user password from command line
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. pgpnS57kbPgut.pgp Description: PGP signature
Re: Changing user password from command line
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 page: HISTORY A passwd command appeared in Version 6 AT&T UNIX. By comparison, pw(8) is a newcomer. In fact, the passwd command was in the Third Edition of Research UNIX, back in 1973. 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. pgp5G59PoWghy.pgp Description: PGP signature
Re: Changing user password from command line
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. > > Any ideas, suggestion? > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" man pw Look for -h option description. -- Best regards, Simon Phoenix (Phoenix Lab.) KeyID: 0x2569D30B Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B pgpMMVqhr24Rc.pgp Description: PGP signature