linamh/app-admin/hpasm/files/hppasswd
geos_one 28523d09e1 add hpasm
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1958 6952d904-891a-0410-993b-d76249ca496b
2010-02-10 16:59:01 +00:00

34 lines
656 B
Bash

#!/bin/bash
case "$1" in
change)
/opt/compaq/foundation/etc/hpwebsetup -v
echo; echo "Configuring Passwords"; echo
echo "Please Enter an Operator password"
read -s PASSWD
/opt/compaq/foundation/etc/hpwebsetup -pO:$PASSWD -f
echo "Please Enter an Administrator password"
read -s PASSWD
/opt/compaq/foundation/etc/hpwebsetup -pA:$PASSWD -f
echo "Please Enter an User password"
read -s PASSWD
/opt/compaq/foundation/etc/hpwebsetup -pU:$PASSWD -f
;;
disable)
rm -rf /var/spool/compaq/wbem/CPQHMMD.ACL
echo "Passwords disabled. Run \"hppasswd change\" to reenable."
;;
*)
echo "Usage: $0 {change|disable}"
exit 1
esac
exit 0