From owner-freebsd-isp Mon Sep 18 0: 2:15 2000 Delivered-To: freebsd-isp@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id BF17F37B422 for ; Mon, 18 Sep 2000 00:02:13 -0700 (PDT) Received: by dell.dannyland.org (Postfix, from userid 1001) id C6F9C5BEB; Mon, 18 Sep 2000 00:01:21 -0700 (PDT) Date: Mon, 18 Sep 2000 00:01:21 -0700 From: dannyman To: Mike Cc: freebsd-isp@FreeBSD.ORG Subject: Re: pw & passwords Message-ID: <20000918000121.B30479@dell.dannyland.org> References: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com>; from mike@mikesweb.com on Mon, Sep 18, 2000 at 01:17:15AM -0400 X-Loop: djhoward@uiuc.edu X-URL: http://www.dannyland.org/~dannyman/ Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Sep 18, 2000 at 01:17:15AM -0400, 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.. I have a script that does what you're looking to do. You may find it useful to borrow from, possibly even adapt, though I see your pipe to pw question is a'ready answered: (Daemonnews appears to be down so I ref my site. Google! ;) Code: http://www.dannyland.org/~dannyman/stuff/enteruser/enteruser Article: http://www.dannyland.org/~dannyman/stuff/enteruser/ -danny -- dannyman - http://www.dannyland.org/~dannyman/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message