Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2003 21:27:00 -0800
From:      Bill Campbell <freebsd@celestial.com>
To:        questions@freebsd.org
Subject:   Re: How can I set a password from STDIN?
Message-ID:  <20031121052700.GA28799@alexis.mi.celestial.com>
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, 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.

The ``expect'' program is designed to handle this problem.

Bill
--
INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``One of the common failings among honorable people is a failure to
appreciate how thoroughly dishonorable some other people can be, and how
dangerous it is to trust them.''
    - Thomas Sowell



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