From owner-freebsd-questions@FreeBSD.ORG Tue Jan 17 06:03:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58EBA16A41F for ; Tue, 17 Jan 2006 06:03:08 +0000 (GMT) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AB5E43D48 for ; Tue, 17 Jan 2006 06:03:08 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id 2CB6F312F9; Tue, 17 Jan 2006 01:03:07 -0500 (EST) Date: Tue, 17 Jan 2006 01:03:07 -0500 (EST) From: user To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: how do I (non-interactively) change a users password in a script ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 06:03:08 -0000 /bin/sh script. Need to change a users password within the script based on a file of user/pass I am feeding the script. Easy. Except the passwd command does not seem to be able to take a password as an argument - I don't think that the passwd command can run non-interactively. So how is this done ? It looks like the adduser script does it non-interactively somehow ... but I don't see how. Thanks.