From owner-freebsd-questions Tue Sep 21 22:58:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 6DC4314D83 for ; Tue, 21 Sep 1999 22:58:32 -0700 (PDT) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id XAA03622; Tue, 21 Sep 1999 23:14:52 -0700 (PDT) Date: Tue, 21 Sep 1999 23:14:52 -0700 (PDT) From: Alfred Perlstein To: Daniel Folkinshteyn Cc: Jonathan Chen , freebsd-questions@FreeBSD.ORG Subject: Re: noninteractive password change In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 22 Sep 1999, Daniel Folkinshteyn wrote: > On Wed, 22 Sep 1999, Jonathan Chen wrote: > > On Wed, 22 Sep 1999, Daniel Folkinshteyn wrote: > > > > > hey. > > > i want to change the password of a user noninteractively through a script > > > run by crontab at regular intervals. > > > is that possible? what program(s) would i use for that? > > > > pw(8) is what you want. > > this is a quote from 'man 8 pw', for the option 'pw usermod -h fd': > > This option provides a special interface by which interactive scripts can > set an account password using pw. > > note _interactive_. i need it to be automatic, with absolutely no user > input? or am i just not getting something here? Yes, you're not even trying his suggestion, try it. thanks, -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message