From owner-freebsd-questions Fri Nov 28 06:53:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA16965 for questions-outgoing; Fri, 28 Nov 1997 06:53:16 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from duey.interlinks.net (duey.interlinks.net [207.107.160.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA16956 for ; Fri, 28 Nov 1997 06:53:12 -0800 (PST) (envelope-from bill@duey.interlinks.net) Received: from duey.interlinks.net (duey.interlinks.net [207.107.160.2]) by duey.interlinks.net (8.8.8/8.8.5) with SMTP id KAA20477 for ; Fri, 28 Nov 1997 10:44:22 GMT Date: Fri, 28 Nov 1997 10:44:22 +0000 (GMT) From: Bill Sandiford To: freebsd-questions@freebsd.org Subject: Changing password with shell scripts Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello : I need some help. I want to write a some sort of script that would allow me to change a users password in one command from the command line The command line would be something like this change_password username oldpassword newpassword The problem is that I don't know a command in FreeBSD that will allow me to do this. passwd requires that you manually type the info in and in my very virgin state of Shell programming I am not quite sure how to do this. Any help would be appreciated Thanks Bill Sandiford