From owner-freebsd-questions Thu Nov 1 14:39: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mbox.com.au (smtp2.mbox.com.au [203.103.80.178]) by hub.freebsd.org (Postfix) with ESMTP id F28D637B40A for ; Thu, 1 Nov 2001 14:39:00 -0800 (PST) Received: from nms2.mbox.com.au (webmail.i7mail.com.au [192.168.20.4]) by smtp2.mbox.com.au (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GM5002DT84MIL@smtp2.mbox.com.au> for freebsd-questions@FreeBSD.ORG; Fri, 2 Nov 2001 06:36:22 +0800 (WST) Received: from mbox.com.au ([127.0.0.1]) by nms2.mbox.com.au (Netscape Messaging Server 4.15) with ESMTP id GM584M03.2ES for ; Fri, 02 Nov 2001 06:36:22 +0800 Date: Fri, 02 Nov 2001 09:36:22 +1100 From: BSD Freak Subject: Changing a user password non-interactively To: FreeBSD Questions Message-id: <3e4c9c3e90fd.3e90fd3e4c9c@mbox.com.au> MIME-version: 1.0 X-Mailer: Netscape Webmail Content-type: text/plain; charset=us-ascii Content-language: en Content-disposition: inline Content-transfer-encoding: 7BIT X-Accept-Language: en 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 Hi again everyone, Does anyone know of a way to change a user password non-interactively (as root of course!)? I am writing my own user management scripts and need someway of passing a shell variable to a program which will change a user password. For example I need: passwd $USER $NEWPASSWORD $PASSWORD_CONFIRMATION to change $USER's password without prompting me at all but simply changing the user password or returning an error message... Warm Regards.... and many thanks in advance.... --------------------------------------------------------------------- Your own fax service 24x7, no extra line or fax machine required http://www.mbox.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message