How can I set a password from STDIN?

Jonathan Chen jonc at chen.org.nz
Fri Nov 21 00:48:13 PST 2003


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 at chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III


More information about the freebsd-questions mailing list