Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 00:01:21 -0700
From:      dannyman <dannyman@dannyland.org>
To:        Mike <mike@mikesweb.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: pw & passwords
Message-ID:  <20000918000121.B30479@dell.dannyland.org>
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
References:  <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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