Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 19:26:37 -0800
From:      Greg Shenaut <greg@bogslab.ucdavis.edu>
To:        security@FreeBSD.ORG
Subject:   Re: password changes 
Message-ID:  <200112120326.fBC3QbI86884@thistle.bogs.org>
In-Reply-To: Your message of "Mon, 10 Dec 2001 23:41:02 PST." <A6A82340FB3DB643A0678E3B10CD5AC1062F55@xela.oopz.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <A6A82340FB3DB643A0678E3B10CD5AC1062F55@xela.oopz.com>, "Noah Davidson" cleopede:
>How can I change the password of a user and not be prompted to verify
>it.  We are changing our mail server to sendmail.  I have all of the
>passwords in plain text.  I want to write a script that changes all 5000
>or so passwords.  How can I do this?  I would like to call passwd or
>some command from a perl script to do this.  Any Ideas would be very
>helpful.

If you are in a Very Secure Environment (and, if you have all the
passwords in a plain text file, you must be), then I think what
would I would try is to encrypt the plain-text passwords--using
makekey(8) should work--then using vipw, write out the lines you
need to change into a file, insert the encrypted passwords using
whatever method you are familiar with, and then read the resulting
lines back into the vipw session.

Greg Shenaut

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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