Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2003 21:48:10 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Lefteris Tsintjelis <lefty@ene.asda.gr>
Cc:        questions@freebsd.org
Subject:   Re: How can I set a password from STDIN?
Message-ID:  <20031121084810.GB4287@grimoire.chen.org.nz>
In-Reply-To: <3FBD97CE.8982F285@ene.asda.gr>
References:  <3FBD97CE.8982F285@ene.asda.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 21, 2003 at 06:42:54AM +0200, Lefteris Tsintjelis wrote:
> Hi,
> 
> Would anyone know how can I set or change a password from STDIN? Neither
> passwd or pw seem to accept STDIN.

Use the -h 0 option for pw(8). Check the man pages for more details.
-- 
Jonathan Chen <jonc@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III



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