From owner-freebsd-security Tue Dec 11 19:26: 0 2001 Delivered-To: freebsd-security@freebsd.org Received: from bogslab.ucdavis.edu (bogslab.ucdavis.edu [169.237.68.34]) by hub.freebsd.org (Postfix) with ESMTP id 4FA2737B41D for ; Tue, 11 Dec 2001 19:25:58 -0800 (PST) Received: from thistle.bogs.org (thistle.bogs.org [198.137.203.61]) by bogslab.ucdavis.edu (8.9.3/8.9.3) with ESMTP id TAA67054 for ; Tue, 11 Dec 2001 19:25:50 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from thistle.bogs.org (localhost [127.0.0.1]) by thistle.bogs.org (8.11.3/8.11.3) with ESMTP id fBC3QbI86884 for ; Tue, 11 Dec 2001 19:26:39 -0800 (PST) (envelope-from greg@thistle.bogs.org) Message-Id: <200112120326.fBC3QbI86884@thistle.bogs.org> To: security@FreeBSD.ORG X-To: "Noah Davidson" X-Sender: owner-freebsd-security@FreeBSD.ORG Subject: Re: password changes In-reply-to: Your message of "Mon, 10 Dec 2001 23:41:02 PST." Reply-To: gkshenaut@ucdavis.edu Date: Tue, 11 Dec 2001 19:26:37 -0800 From: Greg Shenaut Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message , "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