Comment 4 for bug 938315

For the record, posted a patch for review.
For backward compatibility and support automated environment, retained current functionality. That said, with the new patch, user can either specify new password in command line, or enter using the prompt.