From owner-freebsd-isp Mon Sep 18 0:52:16 2000 Delivered-To: freebsd-isp@freebsd.org Received: from workhorse.iMach.com (workhorse.iMach.com [206.127.77.89]) by hub.freebsd.org (Postfix) with ESMTP id 9DA7C37B423 for ; Mon, 18 Sep 2000 00:52:14 -0700 (PDT) Received: from localhost (forrestc@localhost) by workhorse.iMach.com (8.9.3/8.9.3) with ESMTP id AAA02581; Mon, 18 Sep 2000 00:54:04 -0600 (MDT) Date: Mon, 18 Sep 2000 00:54:03 -0600 (MDT) From: "Forrest W. Christian" To: Mike Cc: freebsd-isp@FreeBSD.ORG Subject: Re: pw & passwords In-Reply-To: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 18 Sep 2000, Mike wrote: > I am working on a perl program to automate setting users up on my box, and > I am wanting to user pw in a system call, and am wondering how I can give > it a password directly without it needing to prompt me for it. The closest > I can come, is the "-h fd" flag, but I'm not overly sure how to pull that > one off.. Use the perl password management tools. See setpwent. Or, go after the master password file directly. I personally re-gen the entire /etc/master.passwd file from a SQL database. But again, I have to keep several machines in sync. - Forrest W. Christian (forrestc@imach.com) AC7DE ---------------------------------------------------------------------- iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com Solutions for your high-tech problems. (406)-442-6648 ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message