NAME
moopasswd − change the password of a mooix user
SYNOPSIS
moopasswd username
DESCRIPTION
This program is used internally by the moo to change the password of a moo-only user (one that cannot get a login shell). It can indeed be used to change the password of any user whose username starts with the MOOUSERPREFIX defined in mooix.conf. When run with a username, it prompts similarly to how passwd does, but in a more machine readable format. Each line of output is prefixed with either "prompt: ", "password: ", or "write: ". A mooix method can then turn these into calls to the appropriate methods of the user’s session, to do the password prompting using the session. After each line of read input, the caller should output one line to moopasswd with the user’s response in it.
If the password change fails exit with a nonzero exit code.
SEE ALSO
AUTHOR
Joey Hess <joey [AT] mooix.net>