Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2001 00:41:28 +0100 (CET)
From:      Dan Larsson <dl@tyfon.net>
To:        Ian Chilton <ian@ichilton.co.uk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: OT: Setting password from command line
Message-ID:  <20011224004040.R83263-100000@hq1.tyfon.net>
In-Reply-To: <20011223233327.B13474@woody.ichilton.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011224004040.R83263-100000>