From owner-freebsd-questions Fri Dec 28 10: 2:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id 3518437B416 for ; Fri, 28 Dec 2001 10:01:41 -0800 (PST) Received: (qmail 18208 invoked from network); 28 Dec 2001 18:02:01 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 28 Dec 2001 18:02:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15404.45974.412120.691151@apu.five.sight> Date: Fri, 28 Dec 2001 12:01:58 -0600 To: ScaryG From: Lucas Bergman Cc: FreeBSD Questions Subject: Re: adduser in a perl script question In-Reply-To: <20011228101438.187f0eb0.freymann@scaryg.shacknet.nu> References: <20011228101438.187f0eb0.freymann@scaryg.shacknet.nu> X-Mailer: VM 6.96 under 21.4 (patch 5) "Civil Service" XEmacs Lucid Reply-To: lucas@slb.to Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I'm trying to automate the creation of a new user in a perl5 > script... I need to set the password which is why I'm not using > pw. The man pages for pw talk about a pipe for the password but > there are no examples. I think you want this: $ echo mypassword | pw useradd myname -h 0 Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message