From owner-freebsd-stable Sun Dec 23 15:41:33 2001 Delivered-To: freebsd-stable@freebsd.org Received: from hq1.tyfon.net (hq1.tyfon.net [217.27.162.35]) by hub.freebsd.org (Postfix) with ESMTP id E5D1237B416 for ; Sun, 23 Dec 2001 15:41:30 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hq1.tyfon.net (Postfix) with ESMTP id CD4851C7BD; Mon, 24 Dec 2001 00:41:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by hq1.tyfon.net (Postfix) with ESMTP id 06CEC1C5CA; Mon, 24 Dec 2001 00:41:28 +0100 (CET) Date: Mon, 24 Dec 2001 00:41:28 +0100 (CET) From: Dan Larsson To: Ian Chilton Cc: freebsd-stable@freebsd.org Subject: Re: OT: Setting password from command line In-Reply-To: <20011223233327.B13474@woody.ichilton.co.uk> Message-ID: <20011224004040.R83263-100000@hq1.tyfon.net> Organization: Tyfon Svenska AB X-NCC-NIC: DL1999-RIPE X-NCC-RegID: se.tyfon MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by hq1.tyfon.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 23 Dec 2001, Ian Chilton wrote: | Sorry for another off-topic post. | | I am creating a user on the command line with: | | pw useradd myusername -g mygroup -s /sbin/nologin -c description | | I now need a way of setting the password on this account, but it must | be none-interactive as I want to call it from a Perl script. | | Any ideas? Read the pw man page and look for the '-h' option. Regards +------ Dan Larsson -+- Tyfon Svenska AB -+- DL1999-RIPE 2AA5 90AE 5185 5924 1E0B 1A99 EC8A EA84 406B 06B9 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message