#!/bin/bash
#
# Set the login password for the root and manager users
#
# Usage:
#   callpasswd new_password
#
# Arguments:
#  . The new login password to be set
#
# Change log:
#
# 06/18/2004 Larry Brocious    ODT F0270 - Change manager's password, too

. ${CONSOLE_PATH}hmcfunctions  # Get common function definitions

managerid=`getManagerId`
echo -e "$managerid:$1\nroot:$1" | /usr/sbin/chpasswd  # Change the passwords

exit $?
